[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] Add debug log for control dns resolution failure
commit 924c1a706e757d586fe7ade6bfc0bafa88d024df
Author: aagbsn <aagbsn@xxxxxxxx>
Date: Sat Dec 1 19:35:55 2012 +0000
Add debug log for control dns resolution failure
---
nettests/blocking/dnstamper.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/nettests/blocking/dnstamper.py b/nettests/blocking/dnstamper.py
index 67f02c9..6d6acf5 100644
--- a/nettests/blocking/dnstamper.py
+++ b/nettests/blocking/dnstamper.py
@@ -104,6 +104,11 @@ class DNSTamperTest(dnst.DNSTest):
self.report['tampering'] = {}
control_answers = yield self.performALookup(hostname, self.control_dns_server)
+ if not control_answers:
+ log.err("Got no response from control DNS server %s," \
+ " perhaps the DNS resolver is down?" % self.control_dns_server[0])
+ self.report['tampering'][self.control_dns_server] = 'no_answer'
+ return
for test_resolver in self.test_resolvers:
log.msg("Testing %s test resolver" % test_resolver)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits