Comment 2 for bug 1394933

Revision history for this message
Matthew Mosesohn (raytrac3r) wrote : Re: [library] Different output of 'hostname' command on Ubuntu and CentOS

And if you need to use Python to get this data, you can do this:
short_hostname, separator, domain = os.uname()[1].partition('.')
long_hostname = os.uname()[1]