mirror of
https://github.com/adulau/DomainClassifier.git
synced 2024-12-22 16:45:59 +00:00
chg: [lib] add the port option for recursive resolver outside the standard TCP/UDP 53 port
This commit is contained in:
parent
9c811e48c8
commit
f933e531cb
1 changed files with 2 additions and 1 deletions
|
@ -34,10 +34,11 @@ class Extract:
|
|||
from a rawtext stream. When call, the rawtext parameter is a string
|
||||
containing the raw data to be process."""
|
||||
|
||||
def __init__(self, rawtext=None, nameservers=['8.8.8.8']):
|
||||
def __init__(self, rawtext=None, nameservers=['8.8.8.8'], port= 53):
|
||||
self.rawtext = rawtext
|
||||
self.presolver = dns.resolver.Resolver()
|
||||
self.presolver.nameservers = nameservers
|
||||
self.presolver.port = 53
|
||||
self.presolver.lifetime = 1.0
|
||||
self.bgprankingserver = 'pdns.circl.lu'
|
||||
self.vdomain = []
|
||||
|
|
Loading…
Reference in a new issue