NetworkManager/src/dns-manager
Beniamino Galvani 79c80f00cc dns: don't override DHCP-supplied search order with domain
NM always prepends the list of DNS domains received through DHCP to
the search list in /etc/resolv.conf, overriding the DHCP-supplied DNS
domain search order. This behavior is not entirely correct since it
changes the search order provided by system administrators.

We cannot simply avoid adding the DNS domain list to the search list
because this would break some configurations that rely on the 'domain'
option to deliver the search list.

This patch modifies the behavior of DNS manager to:
 - insert the DHCP-provided 'domain' at the end of 'searches' option
   so that 'searches' is always preferred
 - ignore 'domain' if 'searches' option exists and 'domain' is a
   single domain

https://bugzilla.gnome.org/show_bug.cgi?id=748900
(cherry picked from commit 6edc737173)
2015-05-17 19:25:17 +02:00
..
nm-dns-dnsmasq.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
nm-dns-dnsmasq.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-dns-manager.c dns: don't override DHCP-supplied search order with domain 2015-05-17 19:25:17 +02:00
nm-dns-manager.h core: drop all remaining core-internal error domains 2014-10-22 08:29:10 -04:00
nm-dns-plugin.c dns: kill plugin child synchronously to avoid restart race (rh #1161232) (bgo #728342) 2015-03-27 16:20:55 -05:00
nm-dns-plugin.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-dns-unbound.c dns: ensure that update_dns() always returns a GError on failure 2015-03-27 16:41:09 -05:00
nm-dns-unbound.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-dns-utils.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
nm-dns-utils.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00