In a similar vein of the question at How to keep resolv.conf after reboot, I want to customise
nameserver entry to point to my local DNS elsewhere on my network so that DNS requests being made on the Omnia go through my own DNS. So in short,
/etc/resolv.conf looks like so:
search home nameserver 127.0.0.1
which directs DNS requests to the Omnia’s local DNS server. The
search line can be controlled via the
Local domain setting for
dnsmasq in LuCI but what I need is for the
nameserver line to be changed to
nameserver 10.1.1.x where the IP is my local DNS server. None of the settings in LuCI seem to affect this latter line.
If I stop
/etc/resolv.conf file is changed to reflect the custom DNS servers set on my
wan6 interfaces (which I’ve also set to my local DNS server), so this solves that issue, but breaks my network because
dnsmasq is providing DHCP.
The workaround I’ve been using is to edit
/etc/resolv.conf by hand whilst
dnsmasq is running, but this doesn’t persist past restarts of
dnsmasq which cause the file to be rewritten. I’ve already got the Omnia advertising my custom DNS to DHCP clients fine (eg set via LuCI —> LAN —> DHCP-Options) but now it’s a case of requests on the Omnia itself.
Thoughts? Is there some sort of additional
dnsmasq setting that will make it operate as needed? Thanks.