How to setup adguard home installed raspberry pi?

I have installed adguardhome on the raspberry pi. Next, what settings do I need to make on the openwrt router to make adguardhome take effect? Thanks for helping.


  1. I installed adguardhome not directly in openwrt, but on raspberry pi.
  2. The openwrt I use now has both IPV4 and IPV6.

I'm from a country where my native language is not English, the above is translated by Google.

Point your DNS server to the Rasperry Pi IP address.

1 Like

you can install AGH on your router directly if you have enough space and ram.

Alternately if you want to run any other type of DNS service like AGH or PiHole on another device you must get Dnsmasq to pass option 6 as part of the dhcp request. This will set your downstream clients to use the broadcasted DNS. However, be aware that without dns interception rules, anyone using a hardcoded or alternate set DNS will bypass your filtering.

# DHCP option 6: which DNS (Domain Name Server) to include in the IP configuration for name resolution
uci add_list dhcp.lan.dhcp_option='6,'"<IP of PI>"

Or edit the setting here in luci. As i have AGH installed on the router i just pass the routers ip but you would put your PI IP here.