[Dnsmasq-discuss] Split DNS that works if NXDOMAIN from first server

Carlos Carvalho carlos at fisica.ufpr.br
Wed Oct 14 20:07:36 BST 2015


dnsmasq.rotor at spamgourmet.com (dnsmasq.rotor at spamgourmet.com) wrote on Wed, Oct 14, 2015 at 03:07:17PM BRT:
> What I want to be able to do is configure dnsmasq with 2 servers for
> newparentco.com, so that it attempts our internal fake server first, and if
> it gets NXDOMAIN, it then attempts the real newparentco.com servers. This
> way, I can gradually decommission my fake DNS server by deleting records in
> batches, and as these records with NAT IPs are deleted from my fake DNS
> server, they will then be forwarded to the real newparentco.com servers,
> giving the client the real IP. Once I have deleted the final fake record, I
> can decommission both the fake DNS server and the dnsmasq server, and just
> forward newparentco.com to the real DNS servers.

I don't see a way to do it with server statements. But how about explicitly
declaring your records in a hosts file? This way when a client asks for one of
them dnsmasq will return what's been manually configured. When you remove an
address you just remove it from your hosts list and dnsmasq will ask upstream.



More information about the Dnsmasq-discuss mailing list