Hi,
At this time I've got AdGuard Home running on my OpenWRT, but I wish to migrate it to a different machine. For devices not using the DNS server provided by option 6 of DHCP I implemented the following custom rules in the firewall (to make sure that Google DNS is intercepted and ads are blocked):
iptables -t nat -A PREROUTING -i br-lan -p tcp --dport 53 -j DNAT --to 192.168.1.1:53
iptables -t nat -A PREROUTING -i br-lan -p udp --dport 53 -j DNAT --to 192.168.1.1:53
I altered the destination IP address to new machine, but it caused a DNS loop.
How can I redirect/rewrite all DNS queries destined for other DNS servers (like Google DNS) to my new device (192.168.1.10) and just allow/forward all DNS queries coming from 192.168.1.10?
Thanks in advance!
Kind regards