<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi everyone!</span><div style="font-family:arial,sans-serif;font-size:13px"><br>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</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">my dnsmasq.conf file</div><div style="font-family:arial,sans-serif;font-size:13px"><div>all-servers</div>
<div>no-poll</div><div>server=192.168.0.1</div><div>server=192.168.0.2</div><div>strict-order</div><div><br></div><div>log output</div><div><div>$ dnsmasq -d -q --conf-file=dnsmasq.conf </div><div>dnsmasq: started, version 2.59 cachesize 150 </div>
<div>dnsmasq: compile time options: IPv6 GNU-getopt DBus i18n DHCP TFTP conntrack IDN</div><div>dnsmasq: using nameserver 192.168.0.1#53</div><div>dnsmasq: using nameserver 192.168.0.2#53</div><div>dnsmasq: read /etc/hosts - 8 addresses</div>
<div>dnsmasq: using nameserver 192.168.0.1#53</div><div>dnsmasq: using nameserver 192.168.0.2#53</div><div>dnsmasq: using nameserver 192.168.0.1#53</div><div>dnsmasq: query[A] <a href="http://github.example.com/" target="_blank">github.example.com</a> from 172.18.194.4</div>
<div>dnsmasq: forwarded <a href="http://github.example.com/" target="_blank">github.example.com</a> to 192.168.0.1</div><div>dnsmasq: reply <a href="http://github.example.com/" target="_blank">github.example.com</a> is NXDOMAIN-IPv4</div>
<div>dnsmasq: query[A] <a href="http://github.example.com/" target="_blank">github.example.com</a> from 172.18.194.4</div><div>dnsmasq: cached <a href="http://github.example.com/" target="_blank">github.example.com</a> is NXDOMAIN-IPv4</div>
<div><br></div><div>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.</div>
<div><br></div><div>How to make dnsmasq continue querying other servers when the previous one returned NXDOMAIN?</div><div><br></div><div>Thanks in advance!</div></div><div style>Evgeniy</div></div></div>