- Follow the instructions: https://openwrt.org/docs/guide-user/services/dns/adguard-home
Edit adguardhome.yaml
.
nano /etc/adguardhome.yaml
Find:
dns:
bind_hosts:
- Make sure it is set as:
dns:
bind_hosts:
- 127.0.0.1
- 192.168.1.1
- ::1
- Commit changes:
uci commit dhcp
/etc/init.d/dnsmasq restart
- First entry is the local host
- 2nd entry is the
ipv4
router address - 3rd evtry is the
ipv6
router address localhost
- This will resolve the
OpenWRT
opkg update
- NFT tables (firewall4):
nft add table nat
nft 'add chain nat prerouting { type nat hook prerouting priority -100; }'
nft add rule nat prerouting udp dport 53 ip saddr 192.168.1.0/24 dnat 192.168.1.1:53
https://forum.openwrt.org/t/howto-running-adguard-home-on-openwrt/51678?page=15