From: Yu Watanabe Date: Thu, 16 Mar 2017 05:30:16 +0000 (+0900) Subject: resolved: add global config option to control mDNS stack X-Git-Tag: v234~360^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77525fdc8d60bff55b60b9e443401187204ddfe7;p=thirdparty%2Fsystemd.git resolved: add global config option to control mDNS stack --- diff --git a/man/resolved.conf.xml b/man/resolved.conf.xml index 4fc1ef1b33b..7babc5c5c41 100644 --- a/man/resolved.conf.xml +++ b/man/resolved.conf.xml @@ -126,6 +126,21 @@ global setting is on. + + MulticastDNS= + Takes a boolean argument or + resolve. Controls Multicast DNS support (RFC 6762) on + the local host. If true, enables full Multicast DNS responder and + resolver support. If false, disables both. If set to + resolve, only resolution support is enabled, + but responding is disabled. Note that + systemd-networkd.service8 + also maintains per-link Multicast DNS settings. Multicast DNS will be + enabled on a link only if the per-link and the + global setting is on. + + DNSSEC= Takes a boolean argument or diff --git a/src/resolve/resolved-gperf.gperf b/src/resolve/resolved-gperf.gperf index 446f85cdf41..5153563b999 100644 --- a/src/resolve/resolved-gperf.gperf +++ b/src/resolve/resolved-gperf.gperf @@ -18,6 +18,7 @@ Resolve.DNS, config_parse_dns_servers, DNS_SERVER_SYSTEM, Resolve.FallbackDNS, config_parse_dns_servers, DNS_SERVER_FALLBACK, 0 Resolve.Domains, config_parse_search_domains, 0, 0 Resolve.LLMNR, config_parse_resolve_support, 0, offsetof(Manager, llmnr_support) +Resolve.MulticastDNS, config_parse_resolve_support, 0, offsetof(Manager, mdns_support) Resolve.DNSSEC, config_parse_dnssec_mode, 0, offsetof(Manager, dnssec_mode) Resolve.Cache, config_parse_bool, 0, offsetof(Manager, enable_cache) Resolve.DNSStubListener, config_parse_dns_stub_listener_mode, 0, offsetof(Manager, dns_stub_listener_mode) diff --git a/src/resolve/resolved.conf.in b/src/resolve/resolved.conf.in index 60afa151e31..e6b20620e2c 100644 --- a/src/resolve/resolved.conf.in +++ b/src/resolve/resolved.conf.in @@ -16,6 +16,7 @@ #FallbackDNS=@DNS_SERVERS@ #Domains= #LLMNR=yes +#MulticastDNS=yes #DNSSEC=@DEFAULT_DNSSEC_MODE@ #Cache=yes #DNSStubListener=udp