Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

SERVFAIL not handled well #22

Closed
raylu opened this Issue · 5 comments

2 participants

@raylu

python -c 'import dns.resolver; dns.resolver.query("_domainkey.collabfinder.com", "TXT")'

This hangs because nameservers aren't removed from the list for SERVFAIL: https://github.com/rthalley/dnspython/blob/master/dns/resolver.py#L839
The comment is not very helpful in explaining why.

@rthalley
Owner
@raylu

In my understanding, SERVFAIL is

Server failure - The name server was unable to process this query due to a problem with the name server.

I don't see anything in RFC 1035 about temporary failure. Am I (as often happens when dealing with RFCs) reading the wrong document?

@rthalley
Owner
@raylu

Thanks for looking into this. We have lowered our timeouts and that has taken care of our issue for now.

host and dig both seem to respond instantly with an error.

It also seems unreasonable to expect a retry after a SERVFAIL to work in the real world. If there's an issue with the server, that's their problem (other DNS resolvers will fail immediately anyway).

@rthalley
Owner

We now do not retry a SERVFAILing nameserver by default

@rthalley rthalley closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.