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.
Notice:
I installed adguardhome not directly in openwrt, but on raspberry pi.
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.
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>"