From: Zbigniew Jędrzejewski-Szmek Date: Tue, 7 Mar 2023 12:48:09 +0000 (+0100) Subject: man: explain route-only domains a bit more X-Git-Tag: v254-rc1~1091^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=87291a26f5262c47bdb3493d15534c18f25870e6;p=thirdparty%2Fsystemd.git man: explain route-only domains a bit more The details discussion of how search and route-only domains work is in systemd-resolved.service(8). But users are more likely to look at resolved.conf(5), because that's where Domains= is described. So let's add a reference to the other man page there, and also strengthen the text a bit. In particular, in systemd-resolved.service(8) we say "route-only", which makes the distinction with search domains clearer. Let's use the same in the other man page too. This is based on feedback from Lukáš Nykrýn that the man page is not clear enough. --- diff --git a/man/resolved.conf.xml b/man/resolved.conf.xml index 3c56b767486..2b9f4829718 100644 --- a/man/resolved.conf.xml +++ b/man/resolved.conf.xml @@ -75,7 +75,7 @@ Domains= - A space-separated list of domains optionally prefixed with ~, + A space-separated list of domains, optionally prefixed with ~, used for two distinct purposes described below. Defaults to the empty list. Any domains not prefixed with ~ are used as search @@ -86,17 +86,23 @@ /etc/resolv.conf with the search keyword are used instead, if that file exists and any domains are configured in it. - The domains prefixed with ~ are called "routing domains". All domains listed - here (both search domains and routing domains after removing the ~ prefix) define - a search path that preferably directs DNS queries to this interface. This search path has an effect - only when suitable per-link DNS servers are known. Such servers may be defined through the - DNS= setting (see above) and dynamically at run time, for example from DHCP - leases. If no per-link DNS servers are known, routing domains have no effect. + The domains prefixed with ~ are called "route-only domains". All domains + listed here (both search domains and route-only domains after removing the + ~ prefix) define a search path that preferably directs DNS queries to this + interface. This search path has an effect only when suitable per-link DNS servers are known. Such + servers may be defined through the DNS= setting (see above) and dynamically at run + time, for example from DHCP leases. If no per-link DNS servers are known, route-only domains have no + effect. Use the construct ~. (which is composed from ~ to - indicate a routing domain and . to indicate the DNS root domain that is the + indicate a route-only domain and . to indicate the DNS root domain that is the implied suffix of all DNS domains) to use the DNS servers defined for this link preferably for all - domains. + domains. + + See "Protocols and Routing" in + systemd-resolved.service8 + for details of how search and route-only domains are used. +