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

bortzmeyer opened this Issue Jun 25, 2012 · 1 comment


None yet

1 participant


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 bortzmeyer was assigned Jun 25, 2012

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

@bortzmeyer bortzmeyer closed this Dec 23, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment