Router (openWRT One) using PPPoE, on the WAN port, Upstream DNS Servers set to .9 and .112 (The actual IP addresses don't matter)
The LAN port is connected to a Microtik Switch, and the LAN interface is setup with "Custom DNS Servers" of .202 (PiHole) and .254 (The openWRT One itself)
This setup is basically identical to the setup on my existing tp-link router that I'm replacing with an openWRT One, but my local clients on the LAN, the openWRT One is only issuing the .254 DNS server via DHCP, and my DNS requests seem to be incredibly slow
Am I missing something here?
To put it more generally, I want the WAN interface to use specific DNS servers, bypassing my ISP, and I want my LAN clients to use the PiHole first, and fallback to the openWRT One
The router will always advertise itself as the DNS server unless you override it with DHCP Option 6 in the LAN interface - DHCP Server - Advanced Settings - DHCP-Options field.
All the other Custom DNS entries on your interfaces end up as upstream servers to the router, not as options offered to DHCP clients.
uci add_list dhcp.lan.dhcp_option='6,192.168.1.202,192.168.1.254'
uci commit dhcp
service dnsmasq restart
You'll have to wait until every device renews its lease, or force a reconnection by restarting Wifi and bouncing your switch. But test it by forcing one client into airplane mode...
yeah, not an issue, the OpenWRT One isn't even on the network right now, as I had to toss the tp-link back in its place, as I've got family types that get all kinds of grumpy, if there were no internet all night.
Just pausing to appreciate you saying “I've got family types that get all kinds of grumpy, if there were no internet all night.” Listen, they don’t understand the sacrifice we make. Like, do they think I enjoy almost having an aneurysm trying to figure out why ___ is broken, just so everyone can have a safe, high-quality internet connection? Of course not; I, too, want to be doing my finest doom-scrolling or what have you. (Ok, maybe I do like tinkering a little, but, not when I nearly brick the router when a movie is on )
Maybe a couple of ways to set it up - perhaps stubby on the WAN facing hardware and on the fallback PiHole. The wiki directions use Cloudflare 1.1.1.1 and you could use Cloudflare’s second DNS 1.0.0.1. Or a mix of Cloudflare and another provider.
Ok, so that has mostly worked, in that things resolving through the pihole (.202) do work just fine, but anything hitting the OpenWRT DNS server (.254) don't work. At least I assume there's a DNS Server running on the openWRT Router, or is that something I actually have to specifically enable?