File: reverse_name.py

package info (click to toggle)
dnspython 1.15.0-1%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,220 kB
  • sloc: python: 11,989; makefile: 9
file content (8 lines) | stat: -rwxr-xr-x 177 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
#!/usr/bin/env python

from __future__ import print_function

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