[FS#611] dnsmasq Ignore resolv file option forget at restart

LEDE Bugs lede-bugs at lists.infradead.org
Thu Mar 9 14:55:23 PST 2017


The following task has a new comment added:

FS#611 - dnsmasq Ignore resolv file option forget at restart
User who did this - howl (howl)

----------
I have seen were seems to be the problem.

If we set option noresolv '1' it's suppoused that dnsmasq is not going to use resolv.conf file. It also logs this "daemon.warn dnsmasq[1500]: warning: ignoring resolv-file flag because no-resolv is set". So option resolvfile it's supoused to have no effect in that situation.

The problem is if you for example follows this manual https://wiki.openwrt.org/inbox/dnscrypt it comment out resolvfile. With noresolv 1 and resolvfile unset, dnsmasq touches /etc/resolv.conf instead of /tmp/resolv.conf.auto and makes both with the same contents, the auto dns from wan interface.

If you leave resolvfile with /tmp/resolv.conf.auto dnsmasq doesn't touch /etc/resolv.conf and it's contents stay as search lan and nameserver 127.0.0.1, but resolvfile option it's expected to be ignored with noresolv 1. Even more using LuCI, and checking noresolv makes the textbox for resolvfile disappear and setting it to blank, making only possible to avoid the issue editing manually /etc/config/dhcp.
----------

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=611#comment2124



More information about the lede-bugs mailing list