From: Josh Triplett Date: Sat, 29 Nov 2014 09:07:11 +0000 (-0800) Subject: resolved: Support resolved.conf.d directories in the usual search paths X-Git-Tag: v218~198 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=f2dacc96b25528ca1b0caca6364a69d656cf1569;ds=sidebyside resolved: Support resolved.conf.d directories in the usual search paths --- diff --git a/Makefile-man.am b/Makefile-man.am index 01d34087b..36e0ebbb6 100644 --- a/Makefile-man.am +++ b/Makefile-man.am @@ -1204,8 +1204,13 @@ MANPAGES += \ man/resolved.conf.5 \ man/systemd-resolved.service.8 MANPAGES_ALIAS += \ + man/resolved.conf.d.5 \ man/systemd-resolved.8 +man/resolved.conf.d.5: man/resolved.conf.5 man/systemd-resolved.8: man/systemd-resolved.service.8 +man/resolved.conf.d.html: man/resolved.conf.html + $(html-alias) + man/systemd-resolved.html: man/systemd-resolved.service.html $(html-alias) diff --git a/man/resolved.conf.xml b/man/resolved.conf.xml index c58236856..36013a5e3 100644 --- a/man/resolved.conf.xml +++ b/man/resolved.conf.xml @@ -22,7 +22,8 @@ along with systemd; If not, see . --> - + resolved.conf systemd @@ -44,23 +45,28 @@ resolved.conf - Network Name Resolution configuration file + resolved.conf.d + Network Name Resolution configuration files /etc/systemd/resolved.conf + /etc/systemd/resolved.conf.d/*.conf + /run/systemd/resolved.conf.d/*.conf + /usr/lib/systemd/resolved.conf.d/*.conf Description - When starting, systemd-resolved will read the - configuration file resolved.conf. - This configuration file controls local DNS and LLMNR + These configuration files control local DNS and LLMNR name resolving. + + + Options diff --git a/src/resolve/resolved-conf.c b/src/resolve/resolved-conf.c index 63e87f8df..81b9d3438 100644 --- a/src/resolve/resolved-conf.c +++ b/src/resolve/resolved-conf.c @@ -147,8 +147,9 @@ int config_parse_support( int manager_parse_config_file(Manager *m) { assert(m); - return config_parse(NULL, "/etc/systemd/resolved.conf", NULL, - "Resolve\0", - config_item_perf_lookup, resolved_gperf_lookup, - false, false, true, m); + return config_parse_many("/etc/systemd/resolved.conf", + CONF_DIRS_NULSTR("systemd/resolved.conf"), + "Resolve\0", + config_item_perf_lookup, resolved_gperf_lookup, + false, m); } diff --git a/src/resolve/resolved.conf.in b/src/resolve/resolved.conf.in index c8263d67f..e5a19ee47 100644 --- a/src/resolve/resolved.conf.in +++ b/src/resolve/resolved.conf.in @@ -5,6 +5,9 @@ # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. # +# You can override the directives in this file by creating files in +# /etc/systemd/resolved.conf.d/*.conf. +# # See resolved.conf(5) for details [Resolve]