summaryrefslogtreecommitdiff
path: root/lib/dnspython/examples/reverse_name.py
blob: 351896b01563dd8abd5e834a5d55f01e2c0b7e90 (plain)
1
2
3
4
5
6
#!/usr/bin/env python

import dns.reversename
n = dns.reversename.from_address("127.0.0.1")
print n
print dns.reversename.to_address(n)