NetworkManager/src/dns
Thomas Haller fae84b16f8 dns: better detect systemd-resolved when checking for resolv.conf symlink
We autodetect systemd-resolved based on whether /etc/resolv.conf points
to one of the well known files of systemd-resolved.

Extend the check by also
 - follow symlinks and compare the absolute link target
 - open the file and compare the inodes for hard-linking

Note that when NetworkManager starts, systemd-resolved might not
have started yet. So, while comparing the inode is the best check,
we also compare symlinks (g_file_read_link() and realpath()).

Based-on-patch-by: Sam Morris <sam@robots.org.uk>

https://github.com/NetworkManager/NetworkManager/pull/16
https://bugzilla.gnome.org/show_bug.cgi?id=779269
2017-05-11 13:52:38 +02:00
..
nm-dns-dnsmasq.c Revert "dns: clear dnsmasq cache after an update" 2016-11-29 23:12:23 +01:00
nm-dns-dnsmasq.h build: rename "src/dns-manager" to "src/dns" 2016-11-21 14:07:47 +01:00
nm-dns-manager.c dns: better detect systemd-resolved when checking for resolv.conf symlink 2017-05-11 13:52:38 +02:00
nm-dns-manager.h policy: check for active devices before triggering dns update on hostname change 2017-03-16 18:17:05 +01:00
nm-dns-plugin.c logging: log device and connection along with the message 2017-03-24 12:42:09 +01:00
nm-dns-plugin.h build: rename "src/dns-manager" to "src/dns" 2016-11-21 14:07:47 +01:00
nm-dns-systemd-resolved.c dns/resolved: consider configuration from unmanaged devices 2017-02-24 21:08:54 +01:00
nm-dns-systemd-resolved.h build: rename "src/dns-manager" to "src/dns" 2016-11-21 14:07:47 +01:00
nm-dns-unbound.c dns-unbound: avoid using nm_spawn_process() 2017-02-03 18:53:40 +01:00
nm-dns-unbound.h build: rename "src/dns-manager" to "src/dns" 2016-11-21 14:07:47 +01:00