Adguard Home - no DNS on OpenWrt router

Hello,

I have Cudy WR3000H running with OpenWrt 24.10. Recently I have added additional miniPC device to my network where I’m running Adguard Home on Proxmox server.

I have followed this guide to set it up: https://openwrt.org/docs/guide-user/services/dns/adguard-home - only difference is that as DHCP option 6 I have specified my Adguard IP address (not router), I’m also not using IPv6.

All of the clients are able to resolve DNS and they have Internet access but router itself not - opkg update get timeouts, ping to google doesn’t work etc. How to resolve it? What I did wrong? Should I specify DNS server somewhere else?

If you changed dnsmasq to port 54, change it back to port 53. Since AGH is running on a different device, the router has no valid DNS listening on port 53 for local router queries.

Or point router to an upstream DNS.

echo "nameserver 8.8.8.8" >> /etc/resolv.conf

@dave14305 it’s the same on port 53, I think it might be because of:
uci set dhcp.@dnsmasqdnsmasq[0].noresolv="1"

@frollic this will be overwritten after reboot, isn’t it?

I think I’m supposed to set dnmasq.server to AdGuard IP?

Yes, unless you add the command to /etc/rc.local.

Enough if you tell the router DNS is elsewhere, but I think it's a bad idea to have it use a local DNS instead of upstream.