My router crashes when a few devices connect at the same time.
In the log I see the dns-rebind attack error for the DNS blocked urls and when these requests increase the router slows down the router till the DNS resolving dies.
I read Stubby does not have DNS cache so I thought that might be the problem.
I have tried to ad the cache values to dnsmasq.conf file but then the router stops working all together.
no-resolv
dnssec
server=::1#53535
server=127.0.0.1#53535
listen-address::1,127.0.0.1
cachesize=4192
min_cache_ttl=3600
What is the correct way to ad dns cache to the router in this case?
On this post I read that turning off DNS rebind solves the problem:
Also here: [OpenWrt Wiki] Dnsmasq DHCP server
But many people warn against the security risks. What is the right solution for the router crash problem?