mirror of
https://github.com/openwrt/packages.git
synced 2026-12-02 18:05:31 +04:00
The dhcp4 importer points the system resolver at 127.0.0.1 when kea
starts, but kea leaves it there when it stops, so local lookups keep
going to a server that may no longer run.
On stop, if the resolver configuration is the one the importer
generated, put back the relative link to resolv.conf.auto in
/tmp/resolv.conf.d, as dnsmasq does.
Fixes: 367b72fd76 ("kea: importer for legacy isc-dhcp-v4 UCI configs")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>