Retry query to other servers on receipt of SERVFAIL rcode.

This commit is contained in:
Simon Kelley
2018-05-10 20:54:57 +01:00
parent 6b17335209
commit 34e26e14c5

View File

@@ -817,7 +817,7 @@ void reply_query(int fd, int family, time_t now)
/* Note: if we send extra options in the EDNS0 header, we can't recreate
the query from the reply. */
if (RCODE(header) == REFUSED &&
if ((RCODE(header) == REFUSED || RCODE(header) == SERVFAIL) &&
forward->forwardall == 0 &&
!(forward->flags & FREC_HAS_EXTRADATA))
/* for broken servers, attempt to send to another one. */