NanoPI R4S (OpenWrt 21.02.3 r16554-1d4dea6d4f / LuCI openwrt-21.02 branch git-22.083.69138-0a0ce2a) and dnsmasq 2.85-8
Before dnsmasq I used bind (unfortunately I had to remove it as it is not suitable for blocking ads). So I decided to use dnsmasq. A bit painful interface, given that in the luci interface both the DHCP and DNS options are mixed and for a person who perhaps has no experience with dnsmasq it is a problem! But let's go on...
These are screenshots of the current dnsmasq settings. There are two big problems.
- Set the forwarders to that address in the picture (via stubby) and it doesn't work
- Before, with bind I had set some "zones" where there were entries (on a specific interface/subnet) for my personal devices...and more, on the other interface (wan/wifi). So I had "separated" the two network. Here, with dnsmasq, how do I do it!?
Other issues:
- I still haven't figured out if I have to operate from the lights interface or via cli, and for a newbie it's a bit "unsettled"
- I set it must not touch the resolv.conf file and when I try to check it changes the values in that file!
- Set the
min-cache-ttl
and it's as if I didn't set it!
File config/dhcp
:
config dnsmasq
option authoritative '1'
option leasefile '/tmp/dhcp.leases'
option ednspacket_max '1232'
option nonwildcard '0'
option dnsseccheckunsigned '0'
option confdir '/tmp/dnsmasq.d/'
option port '53'
option localuse '1'
option noresolv '1'
option quietdhcp '1'
option boguspriv '0'
option rebind_protection '0'
option cachesize '2048'
option min_cache_ttl '900'
option filterwin2k '1'
option localservice '0'
option nohosts '1'
option nonegcache '1'
option strictorder '1'
option allservers '1'
list server '8.8.8.8'
Thank you