X7ROOT File Manager
Current Path:
/usr/share/doc/python3-dns/examples
usr
/
share
/
doc
/
python3-dns
/
examples
/
📁
..
📄
ddns.py
(1.18 KB)
📄
e164.py
(152 B)
📄
mx.py
(225 B)
📄
name.py
(468 B)
📄
reverse.py
(1.32 KB)
📄
reverse_name.py
(177 B)
📄
xfr.py
(393 B)
📄
zonediff.py
(10.86 KB)
Editing: name.py
#!/usr/bin/env python from __future__ import print_function import dns.name n = dns.name.from_text('www.dnspython.org') o = dns.name.from_text('dnspython.org') print(n.is_subdomain(o)) # True print(n.is_superdomain(o)) # False print(n > o) # True rel = n.relativize(o) # rel is the relative name www n2 = rel + o print(n2 == n) # True print(n.labels) # ['www', 'dnspython', 'org', '']
Upload File
Create Folder