5 n
= dns
.name
.from_text('www.dnspython.org')
6 o
= dns
.name
.from_text('dnspython.org')
7 print n
.is_subdomain(o
) # True
8 print n
.is_superdomain(o
) # False
10 rel
= n
.relativize(o
) # rel is the relative name www
13 print n
.labels
# ['www', 'dnspython', 'org', '']