I am building up to an ultimate question of how to get Adguard Home via raspberry pi to work with my Mikrotik network. I tried pointing the DNS entries in IP-DHCP-Server-Network to my raspberry pi which has Adguard Home running (and which says the upstream DNS I entered is correct and accessible). I tried adding the redirect rules in this post, etc, and it just isn't working yet.
So, starting with baby steps I read this post and tried to see whether my current redirect rules in NAT do anything. Apparently not, since when they are activated I can still set Firefox on my laptop to use Cloudflare and it will go to Cloudflare despite my NAT redirect rules which I understood would force everything that goes through the MT router to use my /ip/dns settings...which are currently DOH Control-D...
/ip/firewall nat print
Flags: X - disabled, I - invalid; D - dynamic
0 ;;; Fix the NTP client by changing its source port 123 with something higher (mikrotik forum 794718)
chain=srcnat action=masquerade to-ports=12400-12440 protocol=udp src-port=123 log=no log-prefix=""
1 chain=srcnat action=masquerade src-address-list=not_in_internet out-interface-list=WAN ipsec-policy=out,none
2 chain=dstnat action=redirect to-ports=53 protocol=udp in-interface-list=!WAN dst-port=53
3 chain=dstnat action=redirect to-ports=53 protocol=tcp in-interface-list=!WAN dst-port=53 log=no log-prefix="
/ip/dhcp-server network print
Columns: ADDRESS, GATEWAY, DNS-SERVER
# ADDRESS GATEWAY DNS-SERVER
0 10.10.10.0/24 10.10.10.1 10.10.99.1
1 10.10.20.0/24 10.10.20.1 10.10.99.1
2 10.10.30.0/24 10.10.30.1 10.10.99.1
3 10.10.99.0/24 10.10.99.1 10.10.99.1
/ip/dns print
servers:
dynamic-servers: 2606:4700:4700::1111,2001:4860:4860::8888
use-doh-server: https://dns.controld.com/xxxxxxxxxx
verify-doh-cert: yes
doh-max-server-connections: 8
doh-max-concurrent-queries: 75
doh-timeout: 5s
allow-remote-requests: yes
max-udp-packet-size: 4096
query-server-timeout: 2s
query-total-timeout: 10s
max-concurrent-queries: 50
max-concurrent-tcp-sessions: 10
cache-size: 20480KiB
cache-max-ttl: 1d
address-list-extra-time: 0s
vrf: main
mdns-repeat-ifaces: VLAN-10-Main,VLAN-20-Guest,VLAN-30-IoT,VLAN-99-Mgmt
cache-used: 613KiB
I can't get the dynamic servers to go away - but I'm positive they're coming from my WAN2, not my WAN1 where all internet activity is going until a failover event. The static entries I have in ip/dns are nextdns ip addresses as I've been testing back and forth between Control-D and NextDNS. I am now trying to play with Adguard Home since I got the raspberry pi...
Please let me know if there's anything obvious about my setup that is preventing the redirect rules from forcing my laptop to use Control-D, rather than the Cloudflare setting I tested in the browser settings.
Thanks!