[issue20480] Add ipaddress property to get name of reverse DNS PTR record

Eric V. Smith report at bugs.python.org
Sun Feb 2 16:51:58 CET 2014


Eric V. Smith added the comment:

I concede the point on the trailing dot.

The reason we used to always use it is that it prevented the local resolver from first trying to append the host's default domain name (as, for example, defined in /etc/resolv.conf as "search"). I have no idea if resolvers still do that. Some quick research shows that that's probably not their behavior any more, at least if the domain name contains at least one dot.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20480>
_______________________________________


More information about the Python-bugs-list mailing list