4 ms·
Is there a way I can keep a second DNS as a fallback that doesn't get used unless my pi-hole is down?
by corv 8y ago
Is there a way I can keep a second DNS as a fallback that doesn't get used unless my pi-hole is down?
- nirav72 8y agoYes. Just set your secondary dns in your client to whatever dns you were using before. It will fall back on secondary if primary dns via pihole fails.
- corv 8y agoSometimes the secondary will take precedence over the primary even though pi-hole is reachable.
- WaLLy3K 8y agoIn my experience, Windows is the worst offender for this. *Nix, macOS and iOS will always prefer the first resolver if all other variables (ping, availability, etc) are equal.
- pbhjpbhj 8y agoI can't remember the details but something changed in Ubuntu defaults to make default to distribute the DNS calls rather than order nameservers, it can be set to use order preference. In short, don't assume strict ordering on Ubu, at least.
- Mashimo 8y agoSure. I put in your second DNS as .. seconds DNS. My routers DHCPD gives pi-hole as primary and itself as secondary DNS.
- corv 8y agoIt seems that both primary and secondary are being used in round-robin and the primary gets relegated when secondary happens to answer faster.
- apexalpha 8y agoInstall a second Pi as PiHole as well. It also runs fine next to Kodi or so if you have one already. DNS requests are incredibly small.