[Dnsmasq-discuss] trying the next DNS server if answer is "refused"?

Richard Hansen rhansen at bbn.com
Wed Dec 2 06:02:12 GMT 2015


On 2015-12-02 00:44, Richard Hansen wrote:
> Is it possible to configure dnsmasq to try the next server in
> /etc/resolv.conf if it gets a "refused" answer?

I just noticed these bits from CHANGELOG.archive:

    version 2.21
        Improve handling of SERVFAIL and REFUSED errors. Receiving
        these now initiates search for a new good server, and a
        server which returns them is not a candidate as a good
        server.

    version 2.24
        Tweak behaviour on receipt of REFUSED or SERVFAIL rcodes,
        now the query gets retried on all servers before returning
        the error to the source of the query.

This is the exact behavior I want, except for the part where REFUSED
causes the server to be "not a candidate as a good server."  (Just
because the server is a bad choice for that particular query doesn't
mean it's bad for all queries.)

I'm using dnsmasq version 2.68, so I'll run some more tests to see if I
can figure out why things aren't behaving as expected.  (tcpdump shows
it giving up immediately when it gets a REFUSED.)  Could the behavior
I'm seeing be caused by --strict-order?

Thanks,
Richard



More information about the Dnsmasq-discuss mailing list