I am trying to make the following setup:
- Using AdGuard DNS (deployed in a VM in my local network)
- Fallback to another DNS (Cloudflare f.e.) as secondary option if
- Continue to resolve all .lan default DNS zone from OpenWRT
My network is 10.66.1.0/24
My Adguard server is working on 10.66.1.152.
I tried 2 different setups scenarios
- on the lan interface > DHCP Server > Advanced > DHCP Options setting 6,10.66.1.152,1.1.1.1 - it works fine, but now I lose the option to use the default OpenWRT .lan DNS zone.
- on the lan interface > Use custom DNS servers > add first record for 10.66.1.152 and second record to 1.1.1.1 - here .lan works, but I see behaviour that not all requests are blocked, like it's doing a switch between the DNS servers and not making queries in order.
Is there a third option that I am missing?