openwrt/package/network/services
Thibaut VARÈNE 8815a3114f dnsmasq: invert logic for "localuse"
Prior to this commit, "localuse" (which enables local resolving through
dnsmsasq) was off by "default". That default was in turn overridden when
"noresolv" was unset (which itself is the default for "noresolv") *and*
"resolvfile" was "/tmp/resolv.conf.d/resolv.conf.auto" (also the default
for this parameter).

In other words, the "default" unset value for "localuse" would only be
ever used in specific *non-default* configurations.

However, the problem with that logic is that a user who wants to ignore
their ISP-provided resolvers by setting "noresolv" to true ends up with
a device that will *only use* said resolvers for local DNS queries,
serving clients' queries via dnsmasq (which now ignores the ISP
resolvers). This can lead to confusion and break random setups as the
DNS lookup performed on clients behalf can differ in their replies from
DNS lookups performed locally on the router.

Furthermore, "localuse" is not configurable through Luci, contrary to
the other two involved settings, adding further confusion for the end
user.

To work around this situation, the logic that sets "localuse" is
inverted: "localuse" now defaults to on by default, and IFF "noresolv"
is unset (default) AND "resolvfile" is changed from default THEN
"localuse" gets turned back off, allowing for more sensible behaviour.

"localuse" value set in config/dhcp still overrides the logic in all
cases, as it did already.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
2023-12-16 15:28:21 +00:00
..
bridger bridger: update to the latest version 2023-05-12 21:18:31 +02:00
dnsmasq dnsmasq: invert logic for "localuse" 2023-12-16 15:28:21 +00:00
dropbear dropbear: add ed25519 for failsafe key 2023-07-26 14:00:01 +02:00
ead ead: fix resource leak in tinysrp 2020-01-05 19:36:46 +01:00
hostapd hostapd: use new udebug ubus api to make debug rings configurable 2023-11-30 20:08:56 +01:00
ipset-dns build: prefer HTTPS if available (for packages) 2022-10-05 17:37:07 +02:00
lldpd lldpd: add lldp_syscapabilities config option 2023-09-24 17:07:28 +02:00
odhcpd odhcpd: Bump to latest commits 2023-10-28 22:33:32 +01:00
omcproxy omcproxy: bump to git HEAD 2021-11-04 15:04:45 +02:00
ppp ppp: backport patches improving ppp interface creation 2023-06-14 05:40:26 +02:00
relayd relayd: bump to version 2023-01-28 2023-01-28 20:24:22 +01:00
uhttpd uhttpd: update to latest git HEAD 2023-06-25 22:48:55 +02:00
umdns umdns: update to Git HEAD (2023-11-21) 2023-11-21 07:36:08 +01:00
unetd unetd: update to the latest version 2023-06-04 16:54:52 +02:00
ustp treewide: add support for "lto" in PKG_BUILD_FLAGS 2023-03-21 18:28:22 +01:00