'DatabaseDNSResolver' object has no attribute 'lookupAllRecords'
djcater opened this issue · comments
INFO:twisted:Lookup failed
INFO:twisted:<Query xyz.xyz.xyz ALL_RECORDS IN> query from ('xxx.xxx.xxx.xxx', 52909)
Unhandled Error
Traceback (most recent call last):
File "/opt/snitchdns/venv/lib/python3.8/site-packages/twisted/names/server.py", line 538, in messageReceived
self.handleQuery(message, proto, address)
File "/opt/snitchdns/app/lib/daemon/server/factory.py", line 50, in handleQuery
return super().handleQuery(message, protocol, address)
File "/opt/snitchdns/venv/lib/python3.8/site-packages/twisted/names/server.py", line 371, in handleQuery
self.resolver.query(query)
File "/opt/snitchdns/venv/lib/python3.8/site-packages/twisted/names/common.py", line 78, in query
return defer.maybeDeferred(method, query.name.name, timeout)
--- <exception caught here> ---
File "/opt/snitchdns/venv/lib/python3.8/site-packages/twisted/internet/defer.py", line 191, in maybeDeferred
result = f(*args, **kwargs)
File "/opt/snitchdns/venv/lib/python3.8/site-packages/twisted/names/resolve.py", line 88, in lookupAllRecords
d = self.resolvers[0].lookupAllRecords(name, timeout)
builtins.AttributeError: 'DatabaseDNSResolver' object has no attribute 'lookupAllRecords'
CRITICAL:twisted:Unhandled Error
Traceback (most recent call last):
File "/opt/snitchdns/venv/lib/python3.8/site-packages/twisted/names/server.py", line 538, in messageReceived
self.handleQuery(message, proto, address)
File "/opt/snitchdns/app/lib/daemon/server/factory.py", line 50, in handleQuery
return super().handleQuery(message, protocol, address)
File "/opt/snitchdns/venv/lib/python3.8/site-packages/twisted/names/server.py", line 371, in handleQuery
self.resolver.query(query)
File "/opt/snitchdns/venv/lib/python3.8/site-packages/twisted/names/common.py", line 78, in query
return defer.maybeDeferred(method, query.name.name, timeout)
--- <exception caught here> ---
File "/opt/snitchdns/venv/lib/python3.8/site-packages/twisted/internet/defer.py", line 191, in maybeDeferred
result = f(*args, **kwargs)
File "/opt/snitchdns/venv/lib/python3.8/site-packages/twisted/names/resolve.py", line 88, in lookupAllRecords
d = self.resolvers[0].lookupAllRecords(name, timeout)
builtins.AttributeError: 'DatabaseDNSResolver' object has no attribute 'lookupAllRecords'
INFO:twisted:Replying with no answers
INFO:twisted:Processed query in 0.012 seconds
I've seen this with multiple lookup domains from multiple IP addresses, but each time it is the ALL_RECORDS
query that causes the error.
However if I manually do the same query with dig
it doesn't seem to trigger the error...