This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author devurandom
Recipients James Shewey, Stijn.Hoop, ankitoshniwal, devurandom, dfranke, loewis, mcjeff, r.david.murray
Date 2017-08-20.02:22:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In my case, /etc/hostname, /proc/sys/kernel/hostname, `uname -n`, `hostname -f` all show the same FQDN, but `python -c 'import socket ; print(socket.getfqdn())'` still prints the short hostname.  /etc/hosts is empty except for localhost.  /etc/nsswitch.conf contains:
hosts:       files mymachines resolve [!UNAVAIL=return] dns myhostname
Date User Action Args
2017-08-20 02:22:32devurandomsetrecipients: + devurandom, loewis, r.david.murray, dfranke, mcjeff, ankitoshniwal, Stijn.Hoop, James Shewey
2017-08-20 02:22:32devurandomsetmessageid: <>
2017-08-20 02:22:32devurandomlinkissue5004 messages
2017-08-20 02:22:31devurandomcreate