Linux – How to Get dnsmasq to Specify Alternate DNS Servers

dhcpdnsmasqdomain-name-systemlinux

I'm working on a network with ~10 kubuntu desktops (and numerous servers and IP phones) and am trying to get dnsmasq to specify another dns server as a failover. I tried using

server=192.168.0.90

but that just added the single dhcp/dns server to /etc/resolv.conf on my test machine (dynamic IP and freshly rebooted with no lease).

Best Answer

Answered my own question, thanks to rfc2132

dhcp-option=6,192.168.0.90,192.168.0.98

However, RFC2132 specifies option 5 as a list of name servers and option 6 as a list of domain name servers, and I'm not sure what the difference is. Either way, option 6 put them correctly as

nameserver 192.168.0.90
nameserver 192.168.0.98

in /etc/resolv.conf

Related Topic