Author leonn
Recipients leonn, ncoghlan, pmoody
Date 2014-02-02.01:22:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391304148.19.0.350065852039.issue20480@psf.upfronthosting.co.za>
In-reply-to
Content
I was missing a method to compute the reverse DNS name for an IP address, and I felt this is something that would belong in the ipaddress module; so here’s a patch for the ipaddress module adding a reverse_name property to IPv?Address.

This is an example:

>>> ipaddress.ip_address("127.0.0.1").reverse_name
'1.0.0.127.in-addr.arpa.'
>>> ipaddress.ip_address("2001:db8::1").reverse_name
'1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa.'

Would this be an acceptable feature for inclusion in the ipaddress module?
History
Date User Action Args
2014-02-02 01:22:28leonnsetrecipients: + leonn, ncoghlan, pmoody
2014-02-02 01:22:28leonnsetmessageid: <1391304148.19.0.350065852039.issue20480@psf.upfronthosting.co.za>
2014-02-02 01:22:27leonnlinkissue20480 messages
2014-02-02 01:22:27leonncreate