Use hostname command rather than socket module

so that we can get the fqdn as the source_host.