openwrt/package/network/services
Marko Zajc 38753dea64
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
dnsmasq: prevent upstream resolution of addresses
`list address` entries in /etc/config/dhcp are sometimes (I'm not sure
about the exact conditions) passed to upstream resolver, bypassing local
resolution. Adding them (minus the IP) to --local prevents this. In the
configuration, this means that

    # /etc/config/dhcp
    list address '/hello.com/world.com/1.2.3.4'
    list address '/foo.com/bar.com/4.3.2.1'

which previously translated into

    # /var/etc/dnsmasq.conf.*
    address=/hello.com/world.com/1.2.3.4
    address=/foo.com/bar.com/4.3.2.1

now becomes

    # /var/etc/dnsmasq.conf.*
    address=/hello.com/world.com/1.2.3.4
    local=/hello.com/world.com/
    address=/foo.com/bar.com/4.3.2.1
    local=/foo.com/bar.com/

This behaviour is controlled by the `address_as_local` boolean option, which
defaults to false (old behaviour). openwrt/luci#7957 adds support for this flag
to LuCI.

A workaround for a small list of domains is to add them to `option local`,
but this is very tedious to do for every `list address` entry and dnsmasq
limits this option to 1024 characters.

Signed-off-by: Marko Zajc <marko@zajc.tel>
Link: https://github.com/openwrt/openwrt/pull/18610
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-11-07 15:23:25 +01:00
..
bridger bridger: fix mirror download hash 2025-10-22 13:42:58 +02:00
dnsmasq dnsmasq: prevent upstream resolution of addresses 2025-11-07 15:23:25 +01:00
dropbear dropbear: disable login recording with musl libc 2025-08-23 18:25:11 +02:00
ead ead: replace legacy RETSIGTYPE with void in signal handler 2025-08-06 06:39:47 +02:00
hostapd wpa_supplicant: pass control events on the per-interface ubus object 2025-11-06 11:23:03 +00:00
ipset-dns treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
lldpd lldpd: bump to 1.0.20 2025-10-19 19:35:44 +02:00
odhcpd odhcpd: update to Git HEAD (2025-11-04) 2025-11-04 12:38:03 +01:00
omcproxy omcproxy: update to Git HEAD (2025-10-04) 2025-10-04 13:40:56 +02:00
ppp ppp: fix PKG_MIRROR_HASH 2025-10-09 13:37:58 +02:00
relayd relayd: update to Git HEAD (2025-10-04) 2025-10-04 13:38:44 +02:00
uhttpd uhttpd: update to Git HEAD (2025-10-03) 2025-10-03 23:57:30 +02:00
umdns umdns: update to Git HEAD (2025-10-04) 2025-10-04 13:31:37 +02:00
unetd unetd: update to Git HEAD (2025-10-03) 2025-10-03 23:57:23 +02:00
unetmsg unetmsg: drop usage of AUTORELEASE 2025-10-29 21:09:56 +01:00
ustp ustp: update to Git HEAD (2023-05-29) 2024-04-27 11:40:04 +02:00