socket.gethostbyaddr() wrongly returning a DNS CNAME as the 'primary' hostname

Dan Stromberg drsalists at gmail.com
Thu Apr 28 21:44:25 EDT 2011


On Thu, Apr 28, 2011 at 1:18 PM, cjblaine <cjblaine at gmail.com> wrote:

> Thanks for the reply, Ned.
>
> Bummer for me.  Check this out:
>
> C code on Solaris 10 SPARC returns the following with nscd
> running (the Solaris Naming Services Caching Daemon, on by
> default):
>

I'm guessing the IP's PTR record is pointing to a CNAME rather than (one of)
the A record(s).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110428/fd9da797/attachment-0001.html>


More information about the Python-list mailing list