File: reverse_name.py

package info (click to toggle)
dnspython 1.16.0-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,520 kB
  • sloc: python: 12,540; makefile: 62
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))