[Dnsmasq-discuss] How to make dnsmasq continue querying other servers when the previous one returned NXDOMAIN?

Evgeniy Afonichev evgeniy at afonichev.com
Sat May 11 19:43:48 BST 2013


Hi everyone!

I'm trying to use dnsmasq as forwarding dns server in the following way -
if first server returns NXDOMAIN then dnsmasq should ask another server
from the list

my dnsmasq.conf file
all-servers
no-poll
server=192.168.0.1
server=192.168.0.2
strict-order

log output
$ dnsmasq -d -q --conf-file=dnsmasq.conf
dnsmasq: started, version 2.59 cachesize 150



dnsmasq: compile time options: IPv6 GNU-getopt DBus i18n DHCP TFTP
conntrack IDN
dnsmasq: using nameserver 192.168.0.1#53
dnsmasq: using nameserver 192.168.0.2#53
dnsmasq: read /etc/hosts - 8 addresses
dnsmasq: using nameserver 192.168.0.1#53
dnsmasq: using nameserver 192.168.0.2#53
dnsmasq: using nameserver 192.168.0.1#53
dnsmasq: query[A] github.example.com from 172.18.194.4
dnsmasq: forwarded github.example.com to 192.168.0.1
dnsmasq: reply github.example.com is NXDOMAIN-IPv4
dnsmasq: query[A] github.example.com from 172.18.194.4
dnsmasq: cached github.example.com is NXDOMAIN-IPv4

as we can see - as soon as the first server 192.168.0.1 returns NXDOMAIN,
dnsmasq returns NXDOMAIN too no matter if there's still another server
192.168.0.2, which can resolve the required domain.

How to make dnsmasq continue querying other servers when the previous one
returned NXDOMAIN?

Thanks in advance!
Evgeniy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20130511/23c82063/attachment.html>


More information about the Dnsmasq-discuss mailing list