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 <>
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 "", 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.
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: <>
2017-02-16 13:52:42eryksunlinkissue29533 messages
2017-02-16 13:52:42eryksuncreate