r/TPLink_Omada • u/viniisiggs • 9d ago
Question DNS failover
Is it possible with omada to have DNS failover type behavior?
I had a major crash today that took out my pihole. When that went down my network ground to a halt without DNS. If this happens again I'd like it to failover to Google or cloudflare or something. When it's working correctly I'd like it to only use pihole.
If I just add it to the DNS list my understanding is that both entries will be provided to the clients. If a client chooses to use the secondary DNS then not much I can do about blocking.
I will eventually spin up a second pihole.
Edit. I have and omada software controller with an ER707M2 router.
2
u/ticedoff8 9d ago
AD = Active Directory Domain Services (a Microsoft thing).
I have AD setup with 2 DC (Domain Controllers) that are configured as redundant DHCP servers for the clients (some that are Windows (members of the domain) and most that are not AD aware (Linux, IoT, cameras, refrigerator, stove - etc)) and dual DNS servers (the records are sync'ed together).
The 2 DC's DNS records keep the internal networks (LAN & VLAN) name services (ARecords, CNAMES - etc) and the DHCP options point all the clients to those 2 DC as the 2 DNS servers.
The TL ER7206 blocks all port 53 (DNS) traffic from LAN -> WAN (includes all the VLANs) and the 2 DC are set to use the ER7206 as their "forwarder". And the ER7206 has its DoT Server set to Quad9 (for encrypted DNS).
Effectively, if the ER7206 dies, there would be no Internet anyway, but the LAN/VLAN continues to be useful.
I have two ISP (Charter & Frontier) and the ER7206 uses them for A/A load balancing and redundancy. And I have a 2nd (new in the box) ER7206 in case the I need it.
I could do everything except the AD stuff with 2 PiHole or a mix of other open-source DNS / DHCP software.
1
u/acejavelin69 9d ago
I am not sure this is really an Omada specific thing and it would likely depend on which router you are talking about specifically and what is doing DHCP... Normally you would setup the router to do DNS proxy, so in DHCP it hand's out itself as the DNS server (192.168.1.1 or whatever), then you set the routers DNS to be your Pihole as primary and 8.8.8.8/1.1.1.1 (or whatever you want) as secondary. As long as your Pihole responds to the DNS query from the router, it will pass that back to the client that requested (and possibly cache it if you setup that way)... if it gets no response, then it goes to the next DNS server and does a query and passes that back to the client.
1
u/Agreeable_Extent4293 9d ago
On DHCP, the clients will always attempt to use the primary DNS first and will try the secondary if they receive no response from the first. The only time this might give you trouble is if the primary DNS has AD or something and the secondary doesn't.
2
u/SP3NGL3R 9d ago
I switched to Technitium because it handles it's own clustering and natural failover because DHCP now gets to send two IPs for DNS to all clients. You just need two PCs to run Technitium on first. Maybe your Omada controller server and the pihole server (if they're two different machines).
2
u/5yleop1m 9d ago
You can run multiple piholes on your network, and then put them as DNS servers in your DHCP config. Which is what I do, except with a different DNS server instead of pihole, but I used to do it with pihole when I setup my network to DNAT all DNS requests.
Omada doesn't have anything to do with this, its a typical feature of any DHCP server to include DNS servers. Most devices will accept 2 DNS servers, but I believe using DHCP options you can add more.
1
u/scriptmonkey420 8d ago
I have my DHCP setup for the Gateway as the Primary and Bind9 on a RasPi as the secondary.
this is why you lock down devices with GPOs
0
u/kraduk1066 8d ago
I'm not sure what the ospf support is like in omada, but a really nice way to do this is with an anycast setup.
0
u/Chrispy_king 9d ago
Are you using Pi-hole for DHCP?
I am and it dishes out the Pi-hole as primary DNS but no secondary AFAIK so if / when Pi-Hole is down everything breaks. Wonder if there’s a way of changing the config for it to dish out maybe 8.8.8.8 or 1.1.1.1 as a secondary DNS to DHCP clients for them to use if the primary PI-Hole address doesn’t respond. But obviously that’s only useful whilst the leases don’t expire as without Pi-Hole there’d be no DHCP too.