mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-12 21:57:27 +03:00
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. (cherry picked from commit 87291a26f5262c47bdb3493d15534c18f25870e6) (cherry picked from commit c7afeee1e6b42d2c68074dc0b89ace502a16315b) (cherry picked from commit 1114a7a52215777e6c87d9e96514846f1b215d47)
This commit is contained in:
parent
459d487f4a
commit
a50500c28f
@ -75,7 +75,7 @@
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>Domains=</varname></term>
|
||||
<listitem><para>A space-separated list of domains optionally prefixed with <literal>~</literal>,
|
||||
<listitem><para>A space-separated list of domains, optionally prefixed with <literal>~</literal>,
|
||||
used for two distinct purposes described below. Defaults to the empty list.</para>
|
||||
|
||||
<para>Any domains <emphasis>not</emphasis> prefixed with <literal>~</literal> are used as search
|
||||
@ -86,17 +86,23 @@
|
||||
<filename>/etc/resolv.conf</filename> with the <varname>search</varname> keyword are used instead, if
|
||||
that file exists and any domains are configured in it.</para>
|
||||
|
||||
<para>The domains prefixed with <literal>~</literal> are called "routing domains". All domains listed
|
||||
here (both search domains and routing domains after removing the <literal>~</literal> 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
|
||||
<varname>DNS=</varname> 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.</para>
|
||||
<para>The domains prefixed with <literal>~</literal> are called "route-only domains". All domains
|
||||
listed here (<emphasis>both search domains and route-only domains</emphasis> after removing the
|
||||
<literal>~</literal> 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 <varname>DNS=</varname> 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.</para>
|
||||
|
||||
<para>Use the construct <literal>~.</literal> (which is composed from <literal>~</literal> to
|
||||
indicate a routing domain and <literal>.</literal> to indicate the DNS root domain that is the
|
||||
indicate a route-only domain and <literal>.</literal> 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.</para></listitem>
|
||||
domains.</para>
|
||||
|
||||
<para>See "Protocols and Routing" in
|
||||
<citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
||||
for details of how search and route-only domains are used.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
|
Loading…
x
Reference in New Issue
Block a user