Hello
I'm new to OpenWRT and I'm not sure how to solve this.
I have noticed that my OpenWRT router is repeating the DNS requests of other PCs and phones to Pi Hole. Looking at the Pi Hole query log, the router sometimes makes the same request 20 times in the same millisecond. The router therefore gets rate-limited few times a day though I have increased the limit to 20,000 requests per minute. The devices initially makes the requests to Pi Hole and then the router repeats it many times. Now my blocked percentage is 2% while it was around 45% before (5M+ domains on adlist)
Here is my setup:
- Pi Hole runs as docker container on a raspberry pi
- Pi Hole runs with default settings and there is no conditional forwarding.
- Router handles DHCP and DHPC points to Raspberry Pi as DNS
- All devices have static leases on router
Here is my OpenWRT config /etc/config/dhcp :
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option localservice '1'
option ednspacket_max '1232'
option strictorder '1'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '5m'
option dhcpv4 'server'
list dhcp_option '6,192.168.100.50'
list ra_flags 'none'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
option start '100'
option limit '150'
option leasetime '12h'
list ra_flags 'none'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
config host
option name 'DEVICE 1'
option dns '1'
option mac 'MAC ADDRESS'
option ip '192.168.100.10'
All other devices are configured as Device 1 above.
Would appreciate any help.
Thanks!