[Dnsmasq-discuss] Is there any way to give clients a secondary DNS for when the dnsmasq server isn't running?

Jima jima at beer.tclug.org
Fri Dec 28 00:23:25 GMT 2012


On 2012-12-27 16:42, Chris Green wrote:
> As per the subject, I'll explain:-
>
> I run dnsmasq on my home server to provide DHCP and DNS services for the
> home LAN.  The server is up just about all the time but there are odd
> occasions when it's not available for more than just the time required
> for a reboot (e.g. OS upgrades and disk checks afer a reboot).
>
> Can dnsmasq supply a secondary DNS server to DHCP clients (when they
> boot) so that, if the dnsmasq server machine is down for a while,
> clients can carry on working?

dhcp-option=6,0.0.0.0,8.8.8.8

  (0.0.0.0 will automagically translate to the dnsmasq server's IP; 
8.8.8.8 is one of Google's public DNS servers, just as an example.)

  Caveat: clients can and most likely will send some queries to 8.8.8.8, 
even if the dnsmasq instance is up.  If you have any local DNS that will 
matter, either a) this solution isn't right for you, or b) you could run 
a second instance of dnsmasq elsewhere, with DHCP disabled, with the 
relevant DNS records.  Choose your path wisely. ;-)

      Jima



More information about the Dnsmasq-discuss mailing list