Trying to make Adguard working with internal lan group

I am trying to make the following setup:

  1. Using AdGuard DNS (deployed in a VM in my local network)
  2. Fallback to another DNS (Cloudflare f.e.) as secondary option if
  3. 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

  1. 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.
  2. 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?

have a look at the dnsmasq strict order option.

Is it possible to set the dnsmasq on the "Interfaces > Advanced settings > Use custom DNS" in the UI? I see there is only IP address format is allowed.

it's under Network -> DHCP and DNS -> [tab] Advanced Settings.

Wow! Thank you very much!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.