If I have the following DHCP option 6 (DNS), what happens?
6,1.1.1.1,8.8.8.8
Will 1.1.1.1
be served, and 8.8.8.8
as fallback if 1.1.1.1
fails?
Extra context: I am running odhcpd
on OpenWRT with pi-hole as my DNS server, and want to have an automatic fallback in case the pi-hole fails.
Best Answer
RFC 2132 (DHCP Options and BOOTP Vendor Extensions), section 3.8 says:
"Should", not "Must", so, it depends on the client...
For example, Windows tries the first one, and falls back to the others if needed:
Configuring TCP/IP networking
Same on Linux:
RESOLV.CONF(5)