Use Google default recursive server as default resolver.

This commit is contained in:
Alexandre Dulaunoy 2013-06-14 09:45:01 +02:00
parent cddf5b5c63
commit a3f87b5135

View file

@ -26,7 +26,7 @@ class Extract:
def __init__(self, rawtext = None): def __init__(self, rawtext = None):
self.rawtext = rawtext self.rawtext = rawtext
self.presolver = dns.resolver.Resolver() self.presolver = dns.resolver.Resolver()
self.presolver.nameservers = ['149.13.33.69'] self.presolver.nameservers = ['8.8.8.8','149.13.33.69']
self.presolver.lifetime = 1.0 self.presolver.lifetime = 1.0
self.bgprankingserver = 'pdns.circl.lu' self.bgprankingserver = 'pdns.circl.lu'
self.vdomain = [] self.vdomain = []