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 <1503195752.1.0.339622929609.issue5004@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
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: <1503195752.1.0.339622929609.issue5004@psf.upfronthosting.co.za>
2017-08-20 02:22:32devurandomlinkissue5004 messages
2017-08-20 02:22:31devurandomcreate