]> jfr.im git - solanum.git/commit - src/res.c
res.c: Try other servers if errors or corrupt replies are encountered.
authorKeith Buck <redacted>
Tue, 9 Oct 2012 05:52:07 +0000 (05:52 +0000)
committerKeith Buck <redacted>
Tue, 9 Oct 2012 05:58:02 +0000 (05:58 +0000)
commit5bd79c2c566fcbfd3268774a9a6c65ec7353b8af
tree29c7c17712b7029931ba122cd94b4c3a5ae8cb8f
parent373d6d79e394bec6c94231ac46e76a562286b305
res.c: Try other servers if errors or corrupt replies are encountered.

Currently, the resolver treats SERVFAIL, NOTIMP, and REFUSED queries the
same as NXDOMAIN, but this really should not be the case. Instead, if
the DNS server errors on our request or provides an invalid request, try
another server.

Also, count DNS server errors in addition to timeouts and avoid these
undesirable servers.
include/reslib.h
src/res.c