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 cherdt
Recipients cherdt, docs@python
Date 2020-05-15.17:02:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589562146.75.0.739099613667.issue40635@roundup.psfhosted.org>
In-reply-to
Content
The documentation for socket.getfqdn() includes this info:

"In case no fully qualified domain name is available, the hostname as returned by gethostname() is returned."

However, that does not appear to be correct. To reproduce a case that exhibits contrary behavior:

>>> import socket
>>> socket.getfqdn("test")
'test'
>>> socket.gethostname()
'centos7minimal.osric.net'
History
Date User Action Args
2020-05-15 17:02:26cherdtsetrecipients: + cherdt, docs@python
2020-05-15 17:02:26cherdtsetmessageid: <1589562146.75.0.739099613667.issue40635@roundup.psfhosted.org>
2020-05-15 17:02:26cherdtlinkissue40635 messages
2020-05-15 17:02:26cherdtcreate