Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'DatabaseDNSResolver' object has no attribute 'lookupAllRecords' #10

Open
djcater opened this issue Feb 4, 2022 · 0 comments
Open

'DatabaseDNSResolver' object has no attribute 'lookupAllRecords' #10

djcater opened this issue Feb 4, 2022 · 0 comments
Assignees

Comments

@djcater
Copy link

djcater commented Feb 4, 2022

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...

@sadreck sadreck self-assigned this Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants