diff options
author | Casey Deccio <casey@deccio.net> | 2016-07-29 21:07:53 +0300 |
---|---|---|
committer | Casey Deccio <casey@deccio.net> | 2016-07-29 21:07:53 +0300 |
commit | 3dec52be2af4ee36ba37be7016f14ac27c8eba4b (patch) | |
tree | 3c4a5d135a3b90b9e9465ef67080ba8ce91c2b58 | |
parent | 148319cb2d563be46c42af99d1f945466f9c9528 (diff) | |
parent | a772d68095a8f870e6806018358e6341b943c76c (diff) |
Merge branch 'master' into localres
-rw-r--r-- | dnsviz/analysis/offline.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dnsviz/analysis/offline.py b/dnsviz/analysis/offline.py index bbaeb81..571e3c1 100644 --- a/dnsviz/analysis/offline.py +++ b/dnsviz/analysis/offline.py @@ -1447,7 +1447,13 @@ class OfflineDomainNameAnalysis(OnlineDomainNameAnalysis): names_from_child = self.get_ns_names_in_child() names_from_parent = self.get_ns_names_in_parent() - auth_ns_response = self.queries[(self.name, dns.rdatatype.NS)].is_valid_complete_authoritative_response_any() + # With explicit delegations we won't have queried for authoritative NS + # records, but we also don't need to check delegation consistency in + # that case. + if (self.name, dns.rdatatype.NS) in self.queries: + auth_ns_response = self.queries[(self.name, dns.rdatatype.NS)].is_valid_complete_authoritative_response_any() + else: + auth_ns_response = False glue_mapping = self.get_glue_ip_mapping() auth_mapping = self.get_auth_ns_ip_mapping() |