mirror of
https://github.com/adulau/DomainClassifier.git
synced 2024-11-22 18:07:07 +00:00
nameservers are now configurable
This commit is contained in:
parent
2f0afbba44
commit
c954da666c
1 changed files with 2 additions and 2 deletions
|
@ -23,10 +23,10 @@ class Extract:
|
||||||
containing the raw data to be process."""
|
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.rawtext = rawtext
|
||||||
self.presolver = dns.resolver.Resolver()
|
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.presolver.lifetime = 1.0
|
||||||
self.bgprankingserver = 'pdns.circl.lu'
|
self.bgprankingserver = 'pdns.circl.lu'
|
||||||
self.vdomain = []
|
self.vdomain = []
|
||||||
|
|
Loading…
Reference in a new issue