PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /proc/thread-self/root/usr/share/doc/python3-dns/examples/
Server: Linux ituca148.hostpapavps.net 4.18.0-553.62.1.el8_10.x86_64 #1 SMP Wed Jul 16 04:08:25 EDT 2025 x86_64
IP: 216.7.89.187
Choose File :

Url:
Dir : //proc/thread-self/root/usr/share/doc/python3-dns/examples/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', '']