nameservers are now configurable

This commit is contained in:
Alexandre Dulaunoy 2014-08-22 07:26:15 +02:00
parent 2f0afbba44
commit c954da666c

View file

@ -23,10 +23,10 @@ class Extract:
containing the raw data to be process."""
def __init__(self, rawtext = None):
def __init__(self, rawtext=None, nameservers=['8.8.8.8']):
self.rawtext = rawtext
self.presolver = dns.resolver.Resolver()
self.presolver.nameservers = ['8.8.8.8','149.13.33.69']
self.presolver.nameservers = nameservers
self.presolver.lifetime = 1.0
self.bgprankingserver = 'pdns.circl.lu'
self.vdomain = []