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

Leon Weber report at bugs.python.org
Sun Feb 2 03:13:20 CET 2014


Leon Weber added the comment:

Thanks for the feedback, I agree "reverse_pointer" is a better, less ambiguous name for the property. I’ve amended the patch to reflect this suggestion.

Regarding the trailing dot, I felt it more appropriate to have it that to leave it out, but I don’t have a strong opinion on this. It has to be there in the DNS query, but most tools will automatically add it to the query if it’s not specified. The "host" tool from bind-utils is undecided as well when printing the output, it includes the trailing dot when querying IPv4 addresses, but not for IPv6 addresses.

Including the trailing dot has the advantage that the output could be directly fed into other code that strictly requires it, like the dnspython module.

I’ll sign and submit the contributor’s agreement as soon as I’m within reach of a printer (likely within the next 24 hours).

----------
Added file: http://bugs.python.org/file33852/ipaddress_reverse_names_v2.patch

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


More information about the Python-bugs-list mailing list