NetworkManager/src/core/dns
Jonathan Lebon 1c0932a6e6
core/dns: emit CONFIG_CHANGED signal even if caching
With systemd-resolved, NetworkManager considers `/etc/resolv.conf`
unmanaged. This breaks hostname lookups in a subtle way: when a new
connection comes online, NM will initiate the hostname lookup *before*
propagating DNS updates to systemd-resolved, which of course will cause
the request to fail. And because NM doesn't update `/etc/resolv.conf`,
it doesn't emit a `CONFIG_CHANGED` signal which would've restarted the
lookup.

Fix this by emitting a signal also when using a caching DNS plugin.

https://bugzilla.redhat.com/show_bug.cgi?id=1933863

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/770
2021-03-04 17:21:46 +01:00
..
nm-dns-dnsmasq.c build: move "shared/nm-{glib-aux,log-null,log-core}" to "src/libnm-{glib-aux,log-null,log-core}" 2021-02-24 12:48:20 +01:00
nm-dns-dnsmasq.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-dns-manager.c core/dns: emit CONFIG_CHANGED signal even if caching 2021-03-04 17:21:46 +01:00
nm-dns-manager.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-dns-plugin.c build: move "libnm-core/" to "src/" and split it 2021-02-18 19:46:51 +01:00
nm-dns-plugin.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-dns-systemd-resolved.c build: move "shared/nm-std-aux" to "src/libnm-std-aux" 2021-02-24 12:48:24 +01:00
nm-dns-systemd-resolved.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-dns-unbound.c all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nm-dns-unbound.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00