openwrt/package
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
..
base-files base-files: generate a global DHCP DUID 2025-10-19 19:46:22 +02:00
boot uboot-envtools: handle U-Boot environment on the BPi-R4 Lite 2025-11-05 14:19:40 +00:00
devel valgrind: Update to version 3.26.0 2025-10-25 22:32:15 +02:00
firmware linux-firmware: update to 20251021 2025-10-23 22:03:31 +02:00
kernel mt76: update to Git HEAD (2025-11-06) 2025-11-06 11:36:14 +00:00
libs package: xcrypt: add missing PKG_NAME 2025-11-07 12:23:52 +01:00
network dnsmasq: prevent upstream resolution of addresses 2025-11-07 15:23:25 +01:00
system opkg: update to Git HEAD (2025-11-05) 2025-11-05 16:47:32 +01:00
utils treewide: edit local CMakeLists.txt to be compatible with cmake 4.x 2025-11-04 15:14:53 +01:00
Makefile package: do not sign individual APK packages 2025-10-09 12:52:43 +02:00