Lines Matching defs:zone
18 import dns.zone
35 Categorize names in zone and provide list of ENTs:
40 - reachable - non-empty authoritative nodes in zone
45 - have NS RR on it, are not zone's apex, and are not occluded
52 - Zone must be constant.
58 zonedb = dns.zone.from_file(zf, origin, relativize=False)
61 def __init__(self, zone: dns.zone.Zone):
62 self.zone = zone
63 assert self.zone.origin # mypy hack
66 self.zone.origin
69 self.wildcards = get_wildcard_names(self.zone)
80 # (except for wildcard expansions) all names in zone which result in NOERROR answers
89 name for name in self.zone if self.zone.get_rdataset(name, rdtype)
96 Split names defined in a zone into three sets:
102 assert self.zone.origin # mypy workaround
103 reachable = set(self.zone)
115 # sanity check, should be impossible with dnspython 2.7.0 zone reader
117 relation, _, _ = name.fullcompare(self.zone.origin)
119 dns.name.NameRelation.NONE, # out of zone?
128 # data _on_ a parent-side of a zone cut are in limbo:
156 assert self.zone.origin
161 while len(super_name) > len(self.zone.origin):