Message209933
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? |
|
Date |
User |
Action |
Args |
2014-02-02 01:22:28 | leonn | set | recipients:
+ leonn, ncoghlan, pmoody |
2014-02-02 01:22:28 | leonn | set | messageid: <1391304148.19.0.350065852039.issue20480@psf.upfronthosting.co.za> |
2014-02-02 01:22:27 | leonn | link | issue20480 messages |
2014-02-02 01:22:27 | leonn | create | |
|