Debian Codegraph @

man/dnssec-trust-anchors.d.xml

raw
1 <?xml version='1.0'?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
4 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
5
6 <refentry id="dnssec-trust-anchors.d" conditional='ENABLE_RESOLVE'
7 xmlns:xi="http://www.w3.org/2001/XInclude">
8 <refentryinfo>
9 <title>dnssec-trust-anchors.d</title>
10 <productname>systemd</productname>
11 </refentryinfo>
12
13 <refmeta>
14 <refentrytitle>dnssec-trust-anchors.d</refentrytitle>
15 <manvolnum>5</manvolnum>
16 </refmeta>
17
18 <refnamediv>
19 <refname>dnssec-trust-anchors.d</refname>
20 <refname>systemd.positive</refname>
21 <refname>systemd.negative</refname>
22 <refpurpose>DNSSEC trust anchor configuration files</refpurpose>
23 </refnamediv>
24
25 <refsynopsisdiv>
26 <para><simplelist>
27 <member><filename>/etc/dnssec-trust-anchors.d/*.positive</filename></member>
28 <member><filename>/run/dnssec-trust-anchors.d/*.positive</filename></member>
29 <member><filename>/usr/local/lib/dnssec-trust-anchors.d/*.positive</filename></member>
30 <member><filename>/usr/lib/dnssec-trust-anchors.d/*.positive</filename></member>
31 <member><filename>/etc/dnssec-trust-anchors.d/*.negative</filename></member>
32 <member><filename>/run/dnssec-trust-anchors.d/*.negative</filename></member>
33 <member><filename>/usr/local/lib/dnssec-trust-anchors.d/*.negative</filename></member>
34 <member><filename>/usr/lib/dnssec-trust-anchors.d/*.negative</filename></member>
35 </simplelist></para>
36 </refsynopsisdiv>
37
38 <refsect1>
39 <title>Description</title>
40
41 <para>The DNSSEC trust anchor configuration files define positive
42 and negative trust anchors
43 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
44 bases DNSSEC integrity proofs on.</para>
45 </refsect1>
46
47 <refsect1>
48 <title>Positive Trust Anchors</title>
49
50 <para>Positive trust anchor configuration files contain <constant class='dns'>DNSKEY</constant> and
51 <constant class='dns'>DS</constant> resource record definitions to use as base for DNSSEC integrity
52 proofs. See <ulink url="https://tools.ietf.org/html/rfc4035#section-4.4">RFC 4035, Section 4.4</ulink>
53 for more information about DNSSEC trust anchors.</para>
54
55 <para>Positive trust anchors are read from files with the suffix
56 <filename>.positive</filename> located in
57 <filename>/etc/dnssec-trust-anchors.d/</filename>,
58 <filename>/run/dnssec-trust-anchors.d/</filename> and
59 <filename>/usr/lib/dnssec-trust-anchors.d/</filename>. These
60 directories are searched in the specified order, and a trust
61 anchor file of the same name in an earlier path overrides a trust
62 anchor files in a later path. To disable a trust anchor file
63 shipped in <filename>/usr/lib/dnssec-trust-anchors.d/</filename>
64 it is sufficient to provide an identically-named file in
65 <filename>/etc/dnssec-trust-anchors.d/</filename> or
66 <filename>/run/dnssec-trust-anchors.d/</filename> that is either
67 empty or a symlink to <filename>/dev/null</filename> ("masked").</para>
68
69 <para>Positive trust anchor files are simple text files resembling DNS zone files, as documented in
70 <ulink url="https://tools.ietf.org/html/rfc1035#section-5">RFC 1035, Section 5</ulink>. One <constant
71 class='dns'>DS</constant> or <constant class='dns'>DNSKEY</constant> resource record may be listed per
72 line. Empty lines and lines starting with <literal>#</literal> or <literal>;</literal> are ignored, which
73 may be used for commenting. A <constant class='dns'>DS</constant> resource record is specified like in the
74 following example:</para>
75
76 <programlisting>. IN DS 19036 8 2 49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5</programlisting>
77
78 <para>The first word specifies the domain, use
79 <literal>.</literal> for the root domain. The domain may be
80 specified with or without trailing dot, which is considered
81 equivalent. The second word must be <literal>IN</literal> the
82 third word <literal>DS</literal>. The following words specify the
83 key tag, signature algorithm, digest algorithm, followed by the
84 hex-encoded key fingerprint. See <ulink
85 url="https://tools.ietf.org/html/rfc4034#section-5">RFC 4034,
86 Section 5</ulink> for details about the precise syntax and meaning
87 of these fields.</para>
88
89 <para>Alternatively, <constant class='dns'>DNSKEY</constant> resource records may be used to define trust
90 anchors, like in the following example:</para>
91
92 <programlisting>. IN DNSKEY 257 3 8 AwEAAagAIKlVZrpC6Ia7gEzahOR+9W29euxhJhVVLOyQbSEW0O8gcCjFFVQUTf6v58fLjwBd0YI0EzrAcQqBGCzh/RStIoO8g0NfnfL2MTJRkxoXbfDaUeVPQuYEhg37NZWAJQ9VnMVDxP/VHL496M/QZxkjf5/Efucp2gaDX6RS6CXpoY68LsvPVjR0ZSwzz1apAzvN9dlzEheX7ICJBBtuA6G3LQpzW5hOA2hzCTMjJPJ8LbqF6dsV6DoBQzgul0sGIcGOYl7OyQdXfZ57relSQageu+ipAdTTJ25AsRTAoub8ONGcLmqrAmRLKBP1dfwhYB4N7knNnulqQxA+Uk1ihz0=</programlisting>
93
94 <para>The first word specifies the domain again, the second word must be <literal>IN</literal>, followed
95 by <literal>DNSKEY</literal>. The subsequent words encode the <constant class='dns'>DNSKEY</constant>
96 flags, protocol and algorithm fields, followed by the key data encoded in Base64. See <ulink
97 url="https://tools.ietf.org/html/rfc4034#section-2">RFC 4034, Section 2</ulink> for details about the
98 precise syntax and meaning of these fields.</para>
99
100 <para>If multiple <constant class='dns'>DS</constant> or <constant class='dns'>DNSKEY</constant> records
101 are defined for the same domain (possibly even in different trust anchor files), all keys are used and
102 are considered equivalent as base for DNSSEC proofs.</para>
103
104 <para>Note that <filename>systemd-resolved</filename> will
105 automatically use a built-in trust anchor key for the Internet
106 root domain if no positive trust anchors are defined for the root
107 domain. In most cases it is hence unnecessary to define an
108 explicit key with trust anchor files. The built-in key is disabled
109 as soon as at least one trust anchor key for the root domain is
110 defined in trust anchor files.</para>
111
112 <para>It is generally recommended to encode trust anchors in <constant class='dns'>DS</constant> resource
113 records, rather than <constant class='dns'>DNSKEY</constant> resource records.</para>
114
115 <para>If a trust anchor specified via a <constant class='dns'>DS</constant> record is found revoked it is
116 automatically removed from the trust anchor database for the runtime. See <ulink
117 url="https://tools.ietf.org/html/rfc5011">RFC 5011</ulink> for details about revoked trust anchors. Note
118 that <filename>systemd-resolved</filename> will not update its trust anchor database from DNS servers
119 automatically. Instead, it is recommended to update the resolver software or update the new trust anchor
120 via adding in new trust anchor files.</para>
121
122 <para>The current DNSSEC trust anchor for the Internet's root
123 domain is available at the <ulink
124 url="https://data.iana.org/root-anchors/root-anchors.xml">IANA
125 Trust Anchor and Keys</ulink> page.</para>
126 </refsect1>
127
128 <refsect1>
129 <title>Negative Trust Anchors</title>
130
131 <para>Negative trust anchors define domains where DNSSEC validation shall be turned
132 off. Negative trust anchor files are found at the same location as positive trust anchor files,
133 and follow the same overriding rules. They are text files with the
134 <filename>.negative</filename> suffix. Empty lines and lines whose first character is
135 <literal>;</literal> are ignored. Each line specifies one domain name which is the root of a DNS
136 subtree where validation shall be disabled. For example:</para>
137
138 <programlisting># Reverse IPv4 mappings
139 10.in-addr.arpa
140 16.172.in-addr.arpa
141 168.192.in-addr.arpa
142 ...
143 # Some custom domains
144 prod
145 stag
146 </programlisting>
147
148 <para>Negative trust anchors are useful to support private DNS
149 subtrees that are not referenced from the Internet DNS hierarchy,
150 and not signed.</para>
151
152 <para><ulink url="https://tools.ietf.org/html/rfc7646">RFC
153 7646</ulink> for details on negative trust anchors.</para>
154
155 <para>If no negative trust anchor files are configured a built-in
156 set of well-known private DNS zone domains is used as negative
157 trust anchors.</para>
158
159 <para>It is also possibly to define per-interface negative trust
160 anchors using the <varname>DNSSECNegativeTrustAnchors=</varname>
161 setting in
162 <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>
163 files.</para>
164 </refsect1>
165
166 <refsect1>
167 <title>See Also</title>
168 <para><simplelist type="inline">
169 <member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
170 <member><citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
171 <member><citerefentry><refentrytitle>resolved.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
172 <member><citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
173 </simplelist></para>
174 </refsect1>
175
176 </refentry>