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

dnspython 2.4.2 confusion: resolve() vs. query() #257

Open
hkelley opened this issue Nov 23, 2023 · 0 comments
Open

dnspython 2.4.2 confusion: resolve() vs. query() #257

hkelley opened this issue Nov 23, 2023 · 0 comments

Comments

@hkelley
Copy link

hkelley commented Nov 23, 2023

Which version of dnspython is expected? I have python3.8/site-packages (2.4.2) on Ubuntu and I get this error using resolve().

  File "/var/www/MISP/app/files/warninglists/tools/generate-crl-ip-domains.py",      line 53, in get_ips_from_domain
    answers = dns.resolver.resolve(domain, 'A')
AttributeError: module 'dns.resolver' has no attribute 'resolve'

I have to switch back to query() to get answers. The docs for 2.4.2 indicate that either should work so I presume this is a setup issue on my part https://dnspython.readthedocs.io/en/latest/resolver-class.html

https://github.com/MISP/misp-warninglists/blob/e868e50c461b2e57c0c4306bad622bc7f658ce39/tools/generate-crl-ip-domains.py#L53C11-L53C11

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

1 participant