Files
openwrt/package/network/utils
Steve Meek b556a45351 umbim: register the network's DNS servers as peer DNS
Since 03e0a608e0 ("package: utils: umbim: add dns servers independent
of peerdns") the DNS block on the wwan_4/wwan_6 interfaces only runs
when dhcp/dhcpv6 is 1. Both default to "auto", so in the default setup
an MBIM connection comes up with no DNS servers: the internet works but
nothing resolves.

Those servers were added to the static child interfaces as configured
"dns", which netifd's peerdns does not filter. Add them to the parent
interface with proto_add_dns_server instead, as qmi.sh does, so netifd
handles peerdns itself: by default they reach resolv.conf.auto, and with
peerdns 0 they stay out of it but are still listed in ifstatus, under
"inactive".

Tested on a Quectel RM500Q-AE (PCIe, mhi_wwan_mbim) on current main:
- before: no dns-server on wwan or wwan_4, resolv.conf.auto empty
- peerdns default: the network's two servers on wwan and in
  resolv.conf.auto, names resolve
- peerdns 0: resolv.conf.auto empty, both servers under "inactive" in
  ifstatus wwan

Signed-off-by: Steve Meek <stevemeek82@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25946
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-11-12 20:27:39 +01:00
..
2026-10-27 10:50:10 +01:00
…
…
…