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 eryksun
Recipients eryksun, juliadolgova, orsenthil, paul.moore, steve.dower, tim.golden, zach.ware
Date 2017-02-16.13:52:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1487253162.19.0.638309148999.issue29533@psf.upfronthosting.co.za>
In-reply-to
Content
gethostbyname_ex won't do a reverse lookup on an IP to get the fully-qualified domain name, which seems pointless for a function named getfqdn. I think calling gethostbyaddr is intentional here and goes back to the Python 1.x days.

Also, FYI, socket_gethostbyaddr in socketmodule.c doesn't pass a name to  C gethostbyaddr. It first calls setipaddr, which calls getaddrinfo to get the IP address. 

For "docs.python.org", the reverse lookup on the IP address has no data. Well, in Windows the error code is WSANO_DATA; in Linux I get HOST_NOT_FOUND.
History
Date User Action Args
2017-02-16 13:52:42eryksunsetrecipients: + eryksun, paul.moore, orsenthil, tim.golden, zach.ware, steve.dower, juliadolgova
2017-02-16 13:52:42eryksunsetmessageid: <1487253162.19.0.638309148999.issue29533@psf.upfronthosting.co.za>
2017-02-16 13:52:42eryksunlinkissue29533 messages
2017-02-16 13:52:42eryksuncreate