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

AttributeError: module 'dns.rdatatype' has no attribute '_by_text' #8

Open
vshuraeff opened this issue Jun 4, 2021 · 1 comment
Open

Comments

@vshuraeff
Copy link

hi
something wrong in newer python versions or maybe pythondns is broken?

>>> from dnsknife import resolver
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "~/.asdf/installs/python/3.8.9/lib/python3.8/site-packages/dnsknife/__init__.py", line 36, in <module>
    from . import monkeypatch  # noqa
  File "~/.asdf/installs/python/3.8.9/lib/python3.8/site-packages/dnsknife/monkeypatch.py", line 9, in <module>
    dns.rdatatype._by_text['CDS'] = dns.rdatatype.CDS
AttributeError: module 'dns.rdatatype' has no attribute '_by_text'
>>> import dns
>>> dns.__version__
'2.1.0'
@kalou
Copy link
Contributor

kalou commented Jun 4, 2021

hey, I don't think dnsknife is maintained - but this is due to dns 2.1.0 indeed
I fixed it by curiosity, pushed in 5667348 in case that helps

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