[Dnsmasq-discuss] Is there any way to give clients a secondary DNS for when the dnsmasq server isn't running?
Chris Green
cl at isbd.net
Fri Dec 28 10:43:52 GMT 2012
On Thu, Dec 27, 2012 at 05:23:25PM -0700, Jima wrote:
> 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. ;-)
>
Yes, I was just thinking I could run a second dnsmasq on my local
network (there's a backup NAS which runs all the time for example) to do
as you suggest. Thank you.
--
Chris Green
More information about the Dnsmasq-discuss
mailing list