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

Switch to the low-level interface of DNSPython? #3

Closed
bortzmeyer opened this issue Jun 25, 2012 · 1 comment
Closed

Switch to the low-level interface of DNSPython? #3

bortzmeyer opened this issue Jun 25, 2012 · 1 comment
Assignees

Comments

@bortzmeyer
Copy link
Owner

DNSpython has two interfaces to the resolver, a high-level one (you create a dns.resolver.Resolver() object and then call its query() method) and a low-level one (create a message with dns.message.make_query() then call dns.query.udp(the_message). The first one is easier to use but some things cannot be done (for instance, it stupidly retries when the resolver returns SERVFAIL, until the timeout). The second interface provides a better control. DNS Looking Glass uses the high-level interface.

May be we should modify DNS Looking Glass to switch to the low-level one? Some things like parsing resolv.conf or handling retries and timeouts would have to be done by us, in that case.

@bortzmeyer
Copy link
Owner Author

Done in the LLI branch and merged to master on 23rd December 2012.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant