I'm trying to prevent the prevent the upstream DNS servers passed through upstream DHCP from getting written to /tmp/resolv.conf.auto
.
Of course will be replaced with an alternative by editing /etc/config/network
:
config interface 'wan'
option ifname 'eth0'
option proto 'dhcp'
option dns '192.168.1.20' <---- I added this
so that '192.168.1.20' appears in /tmp/resolv.conf.auto
. (Already tested and present in /tmp/resolv.conf.auto
in addition to upstream DNS servers propogated via upstream DHCP.)
From reviewing forum discussions I now that it is possible via the LUCI interface unchecking a box labelled ''Use DNS servers advertised by peer".
However, I can't do that or see its effects because I had to remove LUCI in order to install nftables
NAT functions. So I am asking here.