Debian Codegraph @

man/org.freedesktop.resolve1.xml

raw
1 <?xml version="1.0"?>
2 <!--*-nxml-*-->
3 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
4 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
5 <!ENTITY % entities SYSTEM "custom-entities.ent" >
6 %entities;
7 ]>
8 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
9
10 <refentry id="org.freedesktop.resolve1" conditional='ENABLE_RESOLVE'
11 xmlns:xi="http://www.w3.org/2001/XInclude">
12 <refentryinfo>
13 <title>org.freedesktop.resolve1</title>
14 <productname>systemd</productname>
15 </refentryinfo>
16
17 <refmeta>
18 <refentrytitle>org.freedesktop.resolve1</refentrytitle>
19 <manvolnum>5</manvolnum>
20 </refmeta>
21
22 <refnamediv>
23 <refname>org.freedesktop.resolve1</refname>
24 <refpurpose>The D-Bus interface of systemd-resolved</refpurpose>
25 </refnamediv>
26
27 <refsect1>
28 <title>Introduction</title>
29
30 <para>
31 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
32 is a system service that provides hostname resolution and caching using DNS, LLMNR, and mDNS. It also
33 does DNSSEC validation. This page describes the resolve semantics and the D-Bus interface.</para>
34
35 <para>This page contains an API reference only. If you are looking for a longer explanation how to use
36 this API, please consult
37 <ulink url="https://wiki.freedesktop.org/www/Software/systemd/writing-network-configuration-managers">
38 Writing Network Configuration Managers</ulink> and
39 <ulink url="https://wiki.freedesktop.org/www/Software/systemd/writing-resolver-clients">Writing Resolver
40 Clients</ulink>.
41 </para>
42 </refsect1>
43
44 <refsect1>
45 <title>The Manager Object</title>
46
47 <para>The service exposes the following interfaces on the Manager object on the bus:</para>
48
49 <programlisting executable="systemd-resolved" node="/org/freedesktop/resolve1" interface="org.freedesktop.resolve1.Manager">
50 node /org/freedesktop/resolve1 {
51 interface org.freedesktop.resolve1.Manager {
52 methods:
53 ResolveHostname(in i ifindex,
54 in s name,
55 in i family,
56 in t flags,
57 out a(iiay) addresses,
58 out s canonical,
59 out t flags);
60 ResolveAddress(in i ifindex,
61 in i family,
62 in ay address,
63 in t flags,
64 out a(is) names,
65 out t flags);
66 ResolveRecord(in i ifindex,
67 in s name,
68 in q class,
69 in q type,
70 in t flags,
71 out a(iqqay) records,
72 out t flags);
73 ResolveService(in i ifindex,
74 in s name,
75 in s type,
76 in s domain,
77 in i family,
78 in t flags,
79 out a(qqqsa(iiay)s) srv_data,
80 out aay txt_data,
81 out s canonical_name,
82 out s canonical_type,
83 out s canonical_domain,
84 out t flags);
85 GetLink(in i ifindex,
86 out o path);
87 SetLinkDNS(in i ifindex,
88 in a(iay) addresses);
89 SetLinkDNSEx(in i ifindex,
90 in a(iayqs) addresses);
91 SetLinkDomains(in i ifindex,
92 in a(sb) domains);
93 SetLinkDefaultRoute(in i ifindex,
94 in b enable);
95 SetLinkLLMNR(in i ifindex,
96 in s mode);
97 SetLinkMulticastDNS(in i ifindex,
98 in s mode);
99 SetLinkDNSOverTLS(in i ifindex,
100 in s mode);
101 SetLinkDNSSEC(in i ifindex,
102 in s mode);
103 SetLinkDNSSECNegativeTrustAnchors(in i ifindex,
104 in as names);
105 RevertLink(in i ifindex);
106 RegisterService(in s id,
107 in s name_template,
108 in s type,
109 in q service_port,
110 in q service_priority,
111 in q service_weight,
112 in aa{say} txt_datas,
113 out o service_path);
114 UnregisterService(in o service_path);
115 ResetStatistics();
116 FlushCaches();
117 ResetServerFeatures();
118 GetDelegate(in s id,
119 out o path);
120 ListDelegates(out a(so) delegates);
121 properties:
122 readonly s LLMNRHostname = '...';
123 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
124 readonly s LLMNR = '...';
125 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
126 readonly s MulticastDNS = '...';
127 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
128 readonly s DNSOverTLS = '...';
129 readonly a(iiay) DNS = [...];
130 readonly a(iiayqs) DNSEx = [...];
131 @org.freedesktop.DBus.Property.EmitsChangedSignal("const")
132 readonly a(iiay) FallbackDNS = [...];
133 @org.freedesktop.DBus.Property.EmitsChangedSignal("const")
134 readonly a(iiayqs) FallbackDNSEx = [...];
135 readonly (iiay) CurrentDNSServer = ...;
136 readonly (iiayqs) CurrentDNSServerEx = ...;
137 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
138 readonly a(isb) Domains = [...];
139 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
140 readonly (tt) TransactionStatistics = ...;
141 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
142 readonly (ttt) CacheStatistics = ...;
143 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
144 readonly s DNSSEC = '...';
145 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
146 readonly (tttt) DNSSECStatistics = ...;
147 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
148 readonly b DNSSECSupported = ...;
149 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
150 readonly as DNSSECNegativeTrustAnchors = ['...', ...];
151 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
152 readonly s DNSStubListener = '...';
153 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
154 readonly s ResolvConfMode = '...';
155 };
156 interface org.freedesktop.DBus.Peer { ... };
157 interface org.freedesktop.DBus.Introspectable { ... };
158 interface org.freedesktop.DBus.Properties { ... };
159 };
160 </programlisting>
161
162 <!--Autogenerated cross-references for systemd.directives, do not edit-->
163
164 <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.resolve1.Manager"/>
165
166 <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.resolve1.Manager"/>
167
168 <variablelist class="dbus-method" generated="True" extra-ref="ResolveHostname()"/>
169
170 <variablelist class="dbus-method" generated="True" extra-ref="ResolveAddress()"/>
171
172 <variablelist class="dbus-method" generated="True" extra-ref="ResolveRecord()"/>
173
174 <variablelist class="dbus-method" generated="True" extra-ref="ResolveService()"/>
175
176 <variablelist class="dbus-method" generated="True" extra-ref="GetLink()"/>
177
178 <variablelist class="dbus-method" generated="True" extra-ref="SetLinkDNS()"/>
179
180 <variablelist class="dbus-method" generated="True" extra-ref="SetLinkDNSEx()"/>
181
182 <variablelist class="dbus-method" generated="True" extra-ref="SetLinkDomains()"/>
183
184 <variablelist class="dbus-method" generated="True" extra-ref="SetLinkDefaultRoute()"/>
185
186 <variablelist class="dbus-method" generated="True" extra-ref="SetLinkLLMNR()"/>
187
188 <variablelist class="dbus-method" generated="True" extra-ref="SetLinkMulticastDNS()"/>
189
190 <variablelist class="dbus-method" generated="True" extra-ref="SetLinkDNSOverTLS()"/>
191
192 <variablelist class="dbus-method" generated="True" extra-ref="SetLinkDNSSEC()"/>
193
194 <variablelist class="dbus-method" generated="True" extra-ref="SetLinkDNSSECNegativeTrustAnchors()"/>
195
196 <variablelist class="dbus-method" generated="True" extra-ref="RevertLink()"/>
197
198 <variablelist class="dbus-method" generated="True" extra-ref="RegisterService()"/>
199
200 <variablelist class="dbus-method" generated="True" extra-ref="UnregisterService()"/>
201
202 <variablelist class="dbus-method" generated="True" extra-ref="ResetStatistics()"/>
203
204 <variablelist class="dbus-method" generated="True" extra-ref="FlushCaches()"/>
205
206 <variablelist class="dbus-method" generated="True" extra-ref="ResetServerFeatures()"/>
207
208 <variablelist class="dbus-method" generated="True" extra-ref="GetDelegate()"/>
209
210 <variablelist class="dbus-method" generated="True" extra-ref="ListDelegates()"/>
211
212 <variablelist class="dbus-property" generated="True" extra-ref="LLMNRHostname"/>
213
214 <variablelist class="dbus-property" generated="True" extra-ref="LLMNR"/>
215
216 <variablelist class="dbus-property" generated="True" extra-ref="MulticastDNS"/>
217
218 <variablelist class="dbus-property" generated="True" extra-ref="DNSOverTLS"/>
219
220 <variablelist class="dbus-property" generated="True" extra-ref="DNS"/>
221
222 <variablelist class="dbus-property" generated="True" extra-ref="DNSEx"/>
223
224 <variablelist class="dbus-property" generated="True" extra-ref="FallbackDNS"/>
225
226 <variablelist class="dbus-property" generated="True" extra-ref="FallbackDNSEx"/>
227
228 <variablelist class="dbus-property" generated="True" extra-ref="CurrentDNSServer"/>
229
230 <variablelist class="dbus-property" generated="True" extra-ref="CurrentDNSServerEx"/>
231
232 <variablelist class="dbus-property" generated="True" extra-ref="Domains"/>
233
234 <variablelist class="dbus-property" generated="True" extra-ref="TransactionStatistics"/>
235
236 <variablelist class="dbus-property" generated="True" extra-ref="CacheStatistics"/>
237
238 <variablelist class="dbus-property" generated="True" extra-ref="DNSSEC"/>
239
240 <variablelist class="dbus-property" generated="True" extra-ref="DNSSECStatistics"/>
241
242 <variablelist class="dbus-property" generated="True" extra-ref="DNSSECSupported"/>
243
244 <variablelist class="dbus-property" generated="True" extra-ref="DNSSECNegativeTrustAnchors"/>
245
246 <variablelist class="dbus-property" generated="True" extra-ref="DNSStubListener"/>
247
248 <variablelist class="dbus-property" generated="True" extra-ref="ResolvConfMode"/>
249
250 <!--End of Autogenerated section-->
251
252 <refsect2>
253 <title>Methods</title>
254
255 <para><function>ResolveHostname()</function> takes a hostname and resolves it to one or more IP
256 addresses. As parameters it takes the Linux network interface index to execute the query on, or 0 if
257 it may be done on any suitable interface. The <varname>name</varname> parameter specifies the hostname
258 to resolve. Note that if required, IDNA conversion is applied to this name unless it is resolved via
259 LLMNR or MulticastDNS. The <varname>family</varname> parameter limits the results to a specific address
260 family. It may be <constant>AF_INET</constant>, <constant>AF_INET6</constant> or
261 <constant>AF_UNSPEC</constant>. If <constant>AF_UNSPEC</constant> is specified (recommended), both
262 kinds are retrieved, subject to local network configuration (i.e. if no local, routable IPv6 address is
263 found, no IPv6 address is retrieved; and similarly for IPv4). A 64-bit <varname>flags</varname> field
264 may be used to alter the behaviour of the resolver operation (see below). The method returns an array
265 of address records. Each address record consists of the interface index the address belongs to, an
266 address family as well as a byte array with the actual IP address data (which either has 4 or 16
267 elements, depending on the address family). The returned address family will be one of
268 <constant>AF_INET</constant> or <constant>AF_INET6</constant>. For IPv6, the returned address interface
269 index should be used to initialize the .sin6_scope_id field of a
270 <structname>struct sockaddr_in6</structname> instance to permit support for resolution to link-local IP
271 addresses. The address array is followed by the canonical name of the host, which may or may not be
272 identical to the resolved hostname. Finally, a 64-bit <varname>flags</varname> field is returned that
273 is defined similarly to the <varname>flags</varname> field that was passed in, but contains information
274 about the resolved data (see below). If the hostname passed in is an IPv4 or IPv6 address formatted as
275 string, it is parsed, and the result is returned. In this case, no network communication is
276 done.</para>
277
278 <para><function>ResolveAddress()</function> executes the reverse operation: it takes an IP address and
279 acquires one or more hostnames for it. As parameters it takes the interface index to execute the query
280 on, or <constant>0</constant> if all suitable interfaces are OK. The <varname>family</varname>
281 parameter indicates the address family of the IP address to resolve. It may be either
282 <constant>AF_INET</constant> or <constant>AF_INET6</constant>. The <varname>address</varname> parameter
283 takes the raw IP address data (as either a 4 or 16 byte array). The <varname>flags</varname> input
284 parameter may be used to alter the resolver operation (see below). The method returns an array of name
285 records, each consisting of an interface index and a hostname. The <varname>flags</varname> output
286 field contains additional information about the resolver operation (see below).</para>
287
288 <para><function>ResolveRecord()</function> takes a DNS resource record (RR) type, class and name, and
289 retrieves the full resource record set (RRset), including the RDATA, for it. As parameter it takes the
290 Linux network interface index to execute the query on, or <constant>0</constant> if it may be done on
291 any suitable interface. The <varname>name</varname> parameter specifies the RR domain name to look up
292 (no IDNA conversion is applied), followed by the 16-bit class and type fields (which may be
293 ANY). Finally, a <varname>flags</varname> field may be passed in to alter behaviour of the look-up (see
294 below). On completion, an array of RR items is returned. Each array entry consists of the network interface
295 index the RR was discovered on, the class and type field of the RR found, and a byte array of the raw
296 RR discovered. The raw RR data starts with the RR's domain name, in the original casing, followed
297 by the RR type, class, TTL and RDATA, in the binary format documented in
298 <ulink url="https://www.ietf.org/rfc/rfc1035.txt">RFC 1035</ulink>. For RRs that support name
299 compression in the payload (such as MX or PTR), the compression is expanded in the returned
300 data.</para>
301
302 <para>Note that currently, the class field has to be specified as IN or ANY. Specifying a different
303 class will return an error indicating that look-ups of this kind are unsupported. Similarly, some
304 special types are not supported either (AXFR, OPT, …). While <filename>systemd-resolved</filename> parses and validates resource
305 records of many types, it is crucial that clients using this API understand that the RR data originates
306 from the network and should be thoroughly validated before use.</para>
307
308 <para><function>ResolveService()</function> may be used to resolve a DNS
309 <constant class="dns">SRV</constant> service record, as well as the hostnames referenced in it, and
310 possibly an accompanying DNS-SD <constant class="dns">TXT</constant> record containing additional
311 service metadata. The primary benefit of using this method over <function>ResolveRecord()</function>
312 specifying the <constant class="dns">SRV</constant> type is that it will resolve the
313 <constant class="dns">SRV</constant> and <constant class="dns">TXT</constant> RRs as well as the
314 hostnames referenced in the SRV in a single operation. As parameters it takes a Linux network interface
315 index, a service name, a service type and a service domain. This method may be invoked in three
316 different modes:</para>
317
318 <orderedlist>
319 <listitem><para>To resolve a DNS-SD service, specify the service name (e.g. <literal>Lennart's
320 Files</literal>), the service type (e.g. <literal>_webdav._tcp</literal>) and the domain to search in
321 (e.g. <literal>local</literal>) as the three service parameters. The service name must be in UTF-8
322 format, and no IDNA conversion is applied to it in this mode (as mandated by the DNS-SD
323 specifications). However, if necessary, IDNA conversion is applied to the domain parameter.</para>
324 </listitem>
325
326 <listitem><para>To resolve a plain <constant class="dns">SRV</constant> record, set the service name
327 parameter to the empty string and set the service type and domain properly. (IDNA conversion is
328 applied to the domain, if necessary.)</para></listitem>
329
330 <listitem><para>Alternatively, leave both the service name and type empty and specify the full domain
331 name of the <constant class="dns">SRV</constant> record (i.e. prefixed with the service type) in the
332 domain parameter. (No IDNA conversion is applied in this mode.)</para></listitem>
333 </orderedlist>
334
335 <para>The <varname>family</varname> parameter of the <function>ResolveService()</function> method encodes
336 the desired family of the addresses to resolve (use <constant>AF_INET</constant>,
337 <constant>AF_INET6</constant>, or <constant>AF_UNSPEC</constant>). If this is enabled (Use the
338 <constant>NO_ADDRESS</constant> flag to turn address resolution off, see below). The
339 <varname>flags</varname> parameter takes a couple of flags that may be used to alter the resolver
340 operation.</para>
341
342 <para>On completion, <function>ResolveService()</function> returns an array of
343 <constant class="dns">SRV</constant> record structures. Each items consisting of the priority, weight and port
344 fields as well as the hostname to contact, as encoded in the <constant class="dns">SRV</constant>
345 record. Immediately following is an array of the addresses of this hostname, with each item consisting
346 of the interface index, the address family and the address data in a byte array. This address array is
347 followed by the canonicalized hostname. After this array of <constant class="dns">SRV</constant> record
348 structures an array of byte arrays follows that encodes the TXT RR strings, in case DNS-SD look-ups are
349 enabled. The next parameters are the canonical service name, type and domain. This may or may not be
350 identical to the parameters passed in. Finally, a <varname>flags</varname> field is returned that
351 contains information about the resolver operation performed.</para>
352
353 <para>The <function>ResetStatistics()</function> method resets the various statistics counters that
354 <filename>systemd-resolved</filename> maintains to zero. (For details, see the statistics properties below.)</para>
355
356 <para>The <function>GetLink()</function> method takes a network interface index and returns the object
357 path to the <interfacename>org.freedesktop.resolve1.Link</interfacename> object corresponding to it.
358 </para>
359
360 <para>The <function>SetLinkDNS()</function> method sets the DNS servers to use on a specific
361 interface. This method (and the following ones) may be used by network management software to configure
362 per-interface DNS settings. It takes a network interface index as well as an array of DNS server IP
363 address records. Each array item consists of an address family (either <constant>AF_INET</constant> or
364 <constant>AF_INET6</constant>), followed by a 4-byte or 16-byte array with the raw address data. This
365 method is a one-step shortcut for retrieving the Link object for a network interface using
366 <function>GetLink()</function> (see above) and then invoking the <function>SetDNS()</function> method
367 (see below) on it.</para>
368
369 <para><function>SetLinkDNSEx()</function> is similar to <function>SetLinkDNS()</function>, but allows
370 an IP port (instead of the default 53) and DNS name to be specified for each DNS server. The server
371 name is used for Server Name Indication (SNI), which is useful when DNS-over-TLS is
372 used. C.f. <varname>DNS=</varname> in
373 <citerefentry><refentrytitle>resolved.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
374 </para>
375
376 <para><function>SetLinkDefaultRoute()</function> specifies whether the link shall be used as the
377 default route for name queries. See the description of name routing in
378 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
379 for details.</para>
380
381 <para>The <function>SetLinkDomains()</function> method sets the search and routing domains to use on a
382 specific network interface for DNS look-ups. It takes a network interface index and an array of domains,
383 each with a boolean parameter indicating whether the specified domain shall be used as a search domain
384 (false), or just as a routing domain (true). Search domains are used for qualifying single-label names into
385 FQDN when looking up hostnames, as well as for making routing decisions on which interface to send
386 queries ending in the domain to. Routing domains are only used for routing decisions and not used for single-label
387 name qualification. Pass the search domains in the order they should be used.</para>
388
389 <para>The <function>SetLinkLLMNR()</function> method enables or disables LLMNR support on a specific
390 network interface. It takes a network interface index as well as a string that may either be empty or one of
391 <literal>yes</literal>, <literal>no</literal> or <literal>resolve</literal>. If empty, the systemd-wide
392 default LLMNR setting is used. If <literal>yes</literal>, LLMNR is used for resolution of single-label
393 names and the local hostname is registered on all local LANs for LLMNR resolution by peers. If
394 <literal>no</literal>, LLMNR is turned off fully on this interface. If <literal>resolve</literal>, LLMNR
395 is only enabled for resolving names, but the local hostname is not registered for other peers to
396 use.</para>
397
398 <para>Similarly, the <function>SetLinkMulticastDNS()</function> method enables or disables MulticastDNS
399 support on a specific interface. It takes the same parameters as <function>SetLinkLLMNR()</function>
400 described above.</para>
401
402 <para>The <function>SetLinkDNSSEC()</function> method enables or disables DNSSEC validation on a
403 specific network interface. It takes a network interface index as well as a string that may either be
404 empty or one of <literal>yes</literal>, <literal>no</literal>, or <literal>allow-downgrade</literal>. When
405 empty, the system-wide default DNSSEC setting is used. If <literal>yes</literal>, full DNSSEC validation
406 is done for all look-ups. If the selected DNS server does not support DNSSEC, look-ups will fail if this
407 mode is used. If <literal>no</literal>, DNSSEC validation is fully disabled. If
408 <literal>allow-downgrade</literal>, DNSSEC validation is enabled, but is turned off automatically if the
409 selected server does not support it (thus opening up behaviour to downgrade attacks). Note that DNSSEC
410 only applies to traditional DNS, not to LLMNR or MulticastDNS.</para>
411
412 <para>The <function>SetLinkDNSSECNegativeTrustAnchors()</function> method may be used to configure DNSSEC
413 Negative Trust Anchors (NTAs) for a specific network interface. It takes a network interface index and a
414 list of domains as arguments.</para>
415
416 <para>The <function>SetLinkDNSOverTLS()</function> method enables or disables DNS-over-TLS.
417 C.f. <varname>DNSOverTLS=</varname> in
418 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
419 for details.</para>
420
421 <para>Network management software integrating with <filename>systemd-resolved</filename> should call
422 <function>SetLinkDNS()</function> or <function>SetLinkDNSEx()</function>,
423 <function>SetLinkDefaultRoute()</function>, <function>SetLinkDomains()</function> and others after the
424 interface appeared in the kernel (and thus after a network interface index has been assigned), but
425 before the network interfaces is activated (<constant>IFF_UP</constant> set) so that all settings take
426 effect during the full time the network interface is up. It is safe to alter settings while the
427 interface is up, however. Use <function>RevertLink()</function> (described below) to reset all
428 per-interface settings.</para>
429
430 <para>The <function>RevertLink()</function> method may be used to revert all per-link settings
431 described above to the defaults.</para>
432
433 <para>The <function>FlushCaches()</function> method flushes all resource record caches maintained by the
434 resolver, and ensures that any subsequent lookups re-request their responses from their sources.</para>
435
436 <para>The <function>ResetServerFeatures()</function> method flushes any feature information learned
437 about remote DNS servers. This ensures that subsequent lookups will be initially attempted at the
438 highest DNS protocol feature level again, possibly requiring a (potentially slow) downgrade cycle to
439 recognize the supported feature level again.</para>
440
441 <para>The <function>RegisterService()</function> method may be used to register a DNS-SD service on the
442 host. This functionality is closely related to the functionality provided by
443 <citerefentry><refentrytitle>systemd.dnssd</refentrytitle><manvolnum>5</manvolnum></citerefentry>
444 files. It takes a server identifier string as first parameter (this is just a local identifier, and
445 should be chosen so that it neither collides with the basename of <filename>*.dnssd</filename> files
446 nor with names chosen by other IPC clients). It also takes a name template string for the DNS-SD
447 service name visible on the network. This string is subject to specifier expansation, as documented for
448 the <varname>Name=</varname> setting in <filename>*.dnssd</filename> files. It also takes a service
449 type string containing the DNS-SD service type, as well as an IP port, a priority/weight pair for the
450 DNS-SD SRV record. Finally, it takes an array of TXT record data. It returns an object path which may be
451 used as handle to the registered service.</para>
452
453 <para>The <function>UnregisterService()</function> method undoes the effect of
454 <function>RegisterService()</function> and deletes a DNS-SD service previously created via IPC
455 again.</para>
456
457 <para>The <function>GetDelegate()</function> method returns the D-Bus object path for the specified DNS
458 delegate ID.</para>
459
460 <para>The <function>ListDelegates()</function> method returns a list of the IDs and D-Bus object paths
461 of the currently configured DNS delegates.</para>
462
463 <refsect3>
464 <title>The Flags Parameter</title>
465
466 <para>The four methods above accept and return a 64-bit flags value. In most cases passing 0 is sufficient
467 and recommended. However, the following flags are defined to alter the look-up:</para>
468
469 <programlisting>/* Input+Output: Protocol/scope */
470 #define SD_RESOLVED_DNS (UINT64_C(1) &lt;&lt; 0)
471 #define SD_RESOLVED_LLMNR_IPV4 (UINT64_C(1) &lt;&lt; 1)
472 #define SD_RESOLVED_LLMNR_IPV6 (UINT64_C(1) &lt;&lt; 2)
473 #define SD_RESOLVED_MDNS_IPV4 (UINT64_C(1) &lt;&lt; 3)
474 #define SD_RESOLVED_MDNS_IPV6 (UINT64_C(1) &lt;&lt; 4)
475
476 /* Input: Restrictions */
477 #define SD_RESOLVED_NO_CNAME (UINT64_C(1) &lt;&lt; 5)
478 #define SD_RESOLVED_NO_TXT (UINT64_C(1) &lt;&lt; 6)
479 #define SD_RESOLVED_NO_ADDRESS (UINT64_C(1) &lt;&lt; 7)
480 #define SD_RESOLVED_NO_SEARCH (UINT64_C(1) &lt;&lt; 8)
481 #define SD_RESOLVED_NO_VALIDATE (UINT64_C(1) &lt;&lt; 10)
482 #define SD_RESOLVED_NO_SYNTHESIZE (UINT64_C(1) &lt;&lt; 11)
483 #define SD_RESOLVED_NO_CACHE (UINT64_C(1) &lt;&lt; 12)
484 #define SD_RESOLVED_NO_ZONE (UINT64_C(1) &lt;&lt; 13)
485 #define SD_RESOLVED_NO_TRUST_ANCHOR (UINT64_C(1) &lt;&lt; 14)
486 #define SD_RESOLVED_NO_NETWORK (UINT64_C(1) &lt;&lt; 15)
487 #define SD_RESOLVED_NO_STALE (UINT64_C(1) &lt;&lt; 24)
488 #define SD_RESOLVED_RELAX_SINGLE_LABEL (UINT64_C(1) &lt;&lt; 25)
489
490 /* Output: Security */
491 #define SD_RESOLVED_AUTHENTICATED (UINT64_C(1) &lt;&lt; 9)
492 #define SD_RESOLVED_CONFIDENTIAL (UINT64_C(1) &lt;&lt; 18)
493
494 /* Output: Origin */
495 #define SD_RESOLVED_SYNTHETIC (UINT64_C(1) &lt;&lt; 19)
496 #define SD_RESOLVED_FROM_CACHE (UINT64_C(1) &lt;&lt; 20)
497 #define SD_RESOLVED_FROM_ZONE (UINT64_C(1) &lt;&lt; 21)
498 #define SD_RESOLVED_FROM_TRUST_ANCHOR (UINT64_C(1) &lt;&lt; 22)
499 #define SD_RESOLVED_FROM_NETWORK (UINT64_C(1) &lt;&lt; 23)
500 #define SD_RESOLVED_FROM_HOOK (UINT64_C(1) &lt;&lt; 27)
501 </programlisting>
502
503 <para>On input, the first five flags control the protocols to use for the look-up. They refer to
504 classic unicast DNS, LLMNR via IPv4/UDP and IPv6/UDP respectively, as well as MulticastDNS via
505 IPv4/UDP and IPv6/UDP. If all of these five bits are off on input (which is strongly recommended) the
506 look-up will be done via all suitable protocols for the specific look-up. Note that these flags
507 operate as filter only, but cannot force a look-up to be done via a protocol. Specifically,
508 <filename>systemd-resolved</filename> will only route look-ups within the .local TLD to MulticastDNS
509 (plus some reverse look-up address domains), and single-label names to LLMNR (plus some reverse
510 address lookup domains). It will route neither of these to Unicast DNS servers. Also, it will do
511 LLMNR and Multicast DNS only on interfaces suitable for multicast.</para>
512
513 <para>On output, these five flags indicate which protocol was used to execute the operation, and
514 hence where the data was found.</para>
515
516 <para>The primary use cases for these five flags are follow-up look-ups based on DNS data retrieved
517 earlier. In this case, it is often a good idea to limit the follow-up look-up to the protocol that was
518 used to discover the first DNS result.</para>
519
520 <para>The NO_CNAME flag controls whether CNAME/DNAME resource records shall be followed during the
521 look-up. This flag is only available at input, none of the functions will return it on output. If a
522 CNAME/DNAME RR is discovered while resolving a hostname, an error is returned instead. By default,
523 when the flag is off, CNAME/DNAME RRs are followed.</para>
524
525 <para>The NO_TXT and NO_ADDRESS flags only influence operation of the
526 <function>ResolveService()</function> method. They are only defined for input, not output. If NO_TXT
527 is set, the DNS-SD TXT RR look-up is not done in the same operation. If NO_ADDRESS is set, the
528 discovered hostnames are not implicitly translated to their addresses.</para>
529
530 <para>The NO_SEARCH flag turns off the search domain logic. It is only defined for input in
531 <function>ResolveHostname()</function>. When specified, single-label hostnames are not qualified
532 using defined search domains, if any are configured. Note that <function>ResolveRecord()</function>
533 will never qualify single-label domain names using search domains. Also note that multi-label
534 hostnames are never subject to search list expansion.</para>
535
536 <para>NO_VALIDATE can be set to disable validation via DNSSEC even if it would normally be
537 used.</para>
538
539 <para>The next six flags allow disabling certain sources during resolution. NO_SYNTHESIZE disables
540 synthetic records, e.g. the local host name, see section SYNTHETIC RECORDS in
541 <citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
542 for more information. NO_CACHE disables the use of the cache of previously resolved records. NO_ZONE
543 disables answers using locally registered public LLMNR/mDNS resource records. NO_TRUST_ANCHOR
544 disables answers using locally configured trust anchors. NO_NETWORK requires all answers to be
545 provided without using the network, i.e. either from local sources or the cache. NO_STALE flag
546 can be set to disable answering request with stale records.</para>
547
548 <para>The AUTHENTICATED bit is defined only in the output flags of the four functions. If set, the
549 returned data has been fully authenticated. Specifically, this bit is set for all DNSSEC-protected
550 data for which a full trust chain may be established to a trusted domain anchor. It is also set for
551 locally synthesized data, such as <literal>localhost</literal> or data from
552 <filename>/etc/hosts</filename>. Moreover, it is set for all LLMNR or mDNS RRs which originate from
553 the local host. Applications that require authenticated RR data for operation should check this flag
554 before trusting the data. Note that <filename>systemd-resolved</filename> will never return
555 invalidated data, hence this flag simply allows one to discern the cases where data is known to be
556 trusted, or where there is proof that the data is "rightfully" unauthenticated (which includes cases
557 where the underlying protocol or server does not support authenticating data).</para>
558
559 <para>CONFIDENTIAL means the query was resolved via encrypted channels or never left this
560 system.</para>
561
562 <para>The next five bits flags are used in output and provide information about the origin of the
563 answer. FROM_SYNTHETIC means the query was (at least partially) synthesized locally. FROM_CACHE means
564 the query was answered (at least partially) using the cache. FROM_ZONE means the query was answered
565 (at least partially) based on public, locally registered records. FROM_TRUST_ANCHOR means the query
566 was answered (at least partially) using local trust anchors. FROM_NETWORK means the query was
567 answered (at least partially) using the network.</para>
568 </refsect3>
569 </refsect2>
570
571 <refsect2>
572 <title>Properties</title>
573
574 <para>The <varname>LLMNR</varname> and <varname>MulticastDNS</varname> properties report whether LLMNR
575 and MulticastDNS are (globally) enabled. Each may be one of <literal>yes</literal>,
576 <literal>no</literal>, and <literal>resolve</literal>. See <function>SetLinkLLMNR()</function>
577 and <function>SetLinkMulticastDNS()</function> above.</para>
578
579 <para><varname>LLMNRHostname</varname> contains the hostname currently exposed on the network via
580 LLMNR. It usually follows the system hostname as may be queried via
581 <citerefentry project="man-pages"><refentrytitle>gethostname</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
582 but may differ if a conflict is detected on the network.</para>
583
584 <para><varname>DNS</varname> and <varname>DNSEx</varname> contain arrays of all DNS servers currently
585 used by <filename>systemd-resolved</filename>. <varname>DNS</varname> contains information similar to
586 the DNS server data in <filename>/run/systemd/resolve/resolv.conf</filename>. Each structure in the
587 array consists of a numeric network interface index, an address family, and a byte array containing the
588 DNS server address (either 4 bytes in length for IPv4 or 16 bytes in lengths for IPv6).
589 <varname>DNSEx</varname> is similar, but additionally contains the IP port and server name (used for
590 Server Name Indication, SNI). Both arrays contain DNS servers configured system-wide, including those
591 possibly read from a foreign <filename>/etc/resolv.conf</filename> or the <varname>DNS=</varname>
592 setting in <filename>/etc/systemd/resolved.conf</filename>, as well as per-interface DNS server
593 information either retrieved from
594 <citerefentry><refentrytitle>systemd-networkd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
595 or configured by external software via <function>SetLinkDNS()</function> or
596 <function>SetLinkDNSEx()</function> (see above). The network interface index will be 0 for the
597 system-wide configured services and non-zero for the per-link servers.</para>
598
599 <para><varname>FallbackDNS</varname> and <varname>FallbackDNSEx</varname> contain arrays of all DNS
600 servers configured as fallback servers, if any, using the same format as <varname>DNS</varname> and
601 <varname>DNSEx</varname> described above. See the description of <varname>FallbackDNS=</varname> in
602 <citerefentry><refentrytitle>resolved.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry> for
603 the description of when those servers are used.</para>
604
605 <para><varname>CurrentDNSServer</varname> and <varname>CurrentDNSServerEx</varname> specify the server
606 that is currently used for query resolution, in the same format as a single entry in the
607 <varname>DNS</varname> and <varname>DNSEx</varname> arrays described above.</para>
608
609 <para>Similarly, the <varname>Domains</varname> property contains an array of all search and routing
610 domains currently used by <filename>systemd-resolved</filename>. Each entry consists of a network
611 interface index (again, 0 encodes system-wide entries), the actual domain name, and whether the entry
612 is used only for routing (true) or for both routing and searching (false).</para>
613
614 <para>The <varname>TransactionStatistics</varname> property contains information about the number of
615 transactions <filename>systemd-resolved</filename> has processed. It contains a pair of unsigned 64-bit counters, the first
616 containing the number of currently ongoing transactions, the second the number of total transactions
617 <filename>systemd-resolved</filename> is processing or has processed. The latter value may be reset using the
618 <function>ResetStatistics()</function> method described above. Note that the number of transactions does
619 not directly map to the number of issued resolver bus method calls. While simple look-ups usually require a
620 single transaction only, more complex look-ups might result in more, for example when CNAMEs or DNSSEC
621 are in use.</para>
622
623 <para>The <varname>CacheStatistics</varname> property contains information about the executed cache
624 operations so far. It exposes three 64-bit counters: the first being the total number of current cache
625 entries (both positive and negative), the second the number of cache hits, and the third the number of
626 cache misses. The latter counters may be reset using <function>ResetStatistics()</function> (see
627 above).</para>
628
629 <para>The <varname>DNSSEC</varname> property specifies current status of DNSSEC validation. It is one
630 of <literal>yes</literal> (validation is enforced), <literal>no</literal> (no validation is done),
631 <literal>allow-downgrade</literal> (validation is done if the current DNS server supports it). See the
632 description of <varname>DNSSEC=</varname> in
633 <citerefentry><refentrytitle>resolved.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
634 </para>
635
636 <para>The <varname>DNSSECStatistics</varname> property contains information about the DNSSEC
637 validations executed so far. It contains four 64-bit counters: the number of secure, insecure, bogus,
638 and indeterminate DNSSEC validations so far. The counters are increased for each validated RRset, and
639 each non-existence proof. The secure counter is increased for each operation that successfully verified
640 a signed reply, the insecure counter is increased for each operation that successfully verified that an
641 unsigned reply is rightfully unsigned. The bogus counter is increased for each operation where the
642 validation did not check out and the data is likely to have been tempered with. Finally, the
643 indeterminate counter is increased for each operation which did not complete because the necessary keys
644 could not be acquired or the cryptographic algorithms were unknown.</para>
645
646 <para>The <varname>DNSSECSupported</varname> boolean property reports whether DNSSEC is enabled and
647 the selected DNS servers support it. It combines information about system-wide and per-link DNS
648 settings (see below), and only reports true if DNSSEC is enabled and supported on every interface for
649 which DNS is configured and for the system-wide settings if there are any. Note that <filename>systemd-resolved</filename> assumes
650 DNSSEC is supported by DNS servers until it verifies that this is not the case. Thus, the reported
651 value may initially be true, until the first transactions are executed.</para>
652
653 <para>The <varname>DNSOverTLS</varname> boolean property reports whether DNS-over-TLS is enabled.
654 </para>
655
656 <para>The <varname>ResolvConfMode</varname> property exposes how <filename>/etc/resolv.conf</filename>
657 is managed on the host. Currently, the values <literal>uplink</literal>, <literal>stub</literal>,
658 <literal>static</literal> (these three correspond to the three different files
659 <filename>systemd-resolved.service</filename> provides), <literal>foreign</literal> (the file is
660 managed by admin or another service, <filename>systemd-resolved.service</filename> just consumes it),
661 <literal>missing</literal> (<filename>/etc/resolv.conf</filename> is missing).</para>
662
663 <para>The <varname>DNSStubListener</varname> property reports whether the stub listener on port 53 is
664 enabled. Possible values are <literal>yes</literal> (enabled), <literal>no</literal> (disabled),
665 <literal>udp</literal> (only the UDP listener is enabled), and <literal>tcp</literal> (only the TCP
666 listener is enabled).</para>
667
668 <para>The <varname>DNSSECNegativeTrustAnchors</varname> property contains a list of recognized DNSSEC
669 negative trust anchors and contains a list of domains.</para>
670 </refsect2>
671 </refsect1>
672
673 <refsect1>
674 <title>Link Object</title>
675
676 <programlisting executable="systemd-resolved" node="/org/freedesktop/resolve1/link/_1" interface="org.freedesktop.resolve1.Link">
677 node /org/freedesktop/resolve1/link/_1 {
678 interface org.freedesktop.resolve1.Link {
679 methods:
680 SetDNS(in a(iay) addresses);
681 SetDNSEx(in a(iayqs) addresses);
682 SetDomains(in a(sb) domains);
683 SetDefaultRoute(in b enable);
684 SetLLMNR(in s mode);
685 SetMulticastDNS(in s mode);
686 SetDNSOverTLS(in s mode);
687 SetDNSSEC(in s mode);
688 SetDNSSECNegativeTrustAnchors(in as names);
689 Revert();
690 properties:
691 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
692 readonly t ScopesMask = ...;
693 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
694 readonly a(iay) DNS = [...];
695 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
696 readonly a(iayqs) DNSEx = [...];
697 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
698 readonly (iay) CurrentDNSServer = ...;
699 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
700 readonly (iayqs) CurrentDNSServerEx = ...;
701 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
702 readonly a(sb) Domains = [...];
703 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
704 readonly b DefaultRoute = ...;
705 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
706 readonly s LLMNR = '...';
707 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
708 readonly s MulticastDNS = '...';
709 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
710 readonly s DNSOverTLS = '...';
711 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
712 readonly s DNSSEC = '...';
713 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
714 readonly as DNSSECNegativeTrustAnchors = ['...', ...];
715 @org.freedesktop.DBus.Property.EmitsChangedSignal("false")
716 readonly b DNSSECSupported = ...;
717 };
718 interface org.freedesktop.DBus.Peer { ... };
719 interface org.freedesktop.DBus.Introspectable { ... };
720 interface org.freedesktop.DBus.Properties { ... };
721 };
722 </programlisting>
723
724 <!--Autogenerated cross-references for systemd.directives, do not edit-->
725
726 <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.resolve1.Link"/>
727
728 <variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.resolve1.Link"/>
729
730 <variablelist class="dbus-method" generated="True" extra-ref="SetDNS()"/>
731
732 <variablelist class="dbus-method" generated="True" extra-ref="SetDNSEx()"/>
733
734 <variablelist class="dbus-method" generated="True" extra-ref="SetDomains()"/>
735
736 <variablelist class="dbus-method" generated="True" extra-ref="SetDefaultRoute()"/>
737
738 <variablelist class="dbus-method" generated="True" extra-ref="SetLLMNR()"/>
739
740 <variablelist class="dbus-method" generated="True" extra-ref="SetMulticastDNS()"/>
741
742 <variablelist class="dbus-method" generated="True" extra-ref="SetDNSOverTLS()"/>
743
744 <variablelist class="dbus-method" generated="True" extra-ref="SetDNSSEC()"/>
745
746 <variablelist class="dbus-method" generated="True" extra-ref="SetDNSSECNegativeTrustAnchors()"/>
747
748 <variablelist class="dbus-method" generated="True" extra-ref="Revert()"/>
749
750 <variablelist class="dbus-property" generated="True" extra-ref="ScopesMask"/>
751
752 <variablelist class="dbus-property" generated="True" extra-ref="DNS"/>
753
754 <variablelist class="dbus-property" generated="True" extra-ref="DNSEx"/>
755
756 <variablelist class="dbus-property" generated="True" extra-ref="CurrentDNSServer"/>
757
758 <variablelist class="dbus-property" generated="True" extra-ref="CurrentDNSServerEx"/>
759
760 <variablelist class="dbus-property" generated="True" extra-ref="Domains"/>
761
762 <variablelist class="dbus-property" generated="True" extra-ref="DefaultRoute"/>
763
764 <variablelist class="dbus-property" generated="True" extra-ref="LLMNR"/>
765
766 <variablelist class="dbus-property" generated="True" extra-ref="MulticastDNS"/>
767
768 <variablelist class="dbus-property" generated="True" extra-ref="DNSOverTLS"/>
769
770 <variablelist class="dbus-property" generated="True" extra-ref="DNSSEC"/>
771
772 <variablelist class="dbus-property" generated="True" extra-ref="DNSSECNegativeTrustAnchors"/>
773
774 <variablelist class="dbus-property" generated="True" extra-ref="DNSSECSupported"/>
775
776 <!--End of Autogenerated section-->
777
778 <para>For each Linux network interface a "Link" object is created which exposes per-link DNS
779 configuration and state. Use <function>GetLink()</function> on the Manager interface to retrieve the
780 object path for a link object given the network interface index (see above).</para>
781
782 <refsect2>
783 <title>Methods</title>
784
785 <para>The various methods exposed by the Link interface are equivalent to their similarly named
786 counterparts on the Manager interface. e.g. <function>SetDNS()</function> on the Link object maps to
787 <function>SetLinkDNS()</function> on the Manager object, the main difference being that the later
788 expects an interface index to be specified. Invoking the methods on the Manager interface has the
789 benefit of reducing roundtrips, as it is not necessary to first request the Link object path via
790 <function>GetLink()</function> before invoking the methods. The same relationship holds for
791 <function>SetDNSEx()</function>, <function>SetDomains()</function>,
792 <function>SetDefaultRoute()</function>, <function>SetLLMNR()</function>,
793 <function>SetMulticastDNS()</function>, <function>SetDNSOverTLS()</function>,
794 <function>SetDNSSEC()</function>, <function>SetDNSSECNegativeTrustAnchors()</function>, and
795 <function>Revert()</function>. For further details on these methods see the
796 <interfacename>Manager</interfacename> documentation above.</para>
797 </refsect2>
798
799 <refsect2>
800 <title>Properties</title>
801
802 <para><varname>ScopesMask</varname> defines which resolver scopes are currently active on this
803 interface. This 64-bit unsigned integer field is a bit mask consisting of a subset of the bits of the
804 flags parameter describe above. Specifically, it may have the DNS, LLMNR and MDNS bits (the latter in
805 IPv4 and IPv6 flavours) set. Each individual bit is set when the protocol applies to a specific
806 interface and is enabled for it. It is unset otherwise. Specifically, a multicast-capable interface in
807 the "UP" state with an IP address is suitable for LLMNR or MulticastDNS, and any interface that is UP and
808 has an IP address is suitable for DNS. Note the relationship of the bits exposed here with the LLMNR
809 and MulticastDNS properties also exposed on the Link interface. The latter expose what is *configured*
810 to be used on the interface, the former expose what is actually used on the interface, taking into
811 account the abilities of the interface.</para>
812
813 <para><varname>DNSSECSupported</varname> exposes a boolean field that indicates whether DNSSEC is
814 currently configured and in use on the interface. Note that if DNSSEC is enabled on an interface, it is
815 assumed available until it is detected that the configured server does not actually support it. Thus,
816 this property may initially report that DNSSEC is supported on an interface.</para>
817
818 <para><varname>DefaultRoute</varname> exposes a boolean field that indicates whether the interface will
819 be used as default route for name queries. See <function>SetLinkDefaultRoute()</function> above.</para>
820
821 <para>The other properties reflect the state of the various configuration settings for the link which
822 may be set with the various methods calls such as <function>SetDNS()</function> or
823 <function>SetLLMNR()</function>.</para>
824 </refsect2>
825 </refsect1>
826
827 <refsect1>
828 <title>Common Errors</title>
829
830 <para>Many bus methods <filename>systemd-resolved</filename> exposes (in particular the resolver methods such
831 as <function>ResolveHostname()</function> on the <interfacename>Manager</interfacename> interface) may return
832 some of the following errors:</para>
833
834 <variablelist>
835 <varlistentry><term><constant>org.freedesktop.resolve1.NoNameServers</constant></term>
836 <listitem><para>No suitable DNS servers were found to resolve a request.</para>
837
838 <xi:include href="version-info.xml" xpointer="v246"/></listitem>
839 </varlistentry>
840
841 <varlistentry><term><constant>org.freedesktop.resolve1.InvalidReply</constant></term>
842 <listitem><para>A response from the selected DNS server was not understood.</para>
843
844 <xi:include href="version-info.xml" xpointer="v246"/></listitem>
845 </varlistentry>
846
847 <varlistentry><term><constant>org.freedesktop.resolve1.NoSuchRR</constant></term>
848 <listitem><para>The requested name exists, but there is no resource record of the requested type for
849 it. (This is the DNS NODATA case).</para>
850
851 <xi:include href="version-info.xml" xpointer="v246"/></listitem></varlistentry>
852
853 <varlistentry><term><constant>org.freedesktop.resolve1.CNameLoop</constant></term>
854 <listitem><para>The look-up failed because a CNAME or DNAME loop was detected.</para>
855
856 <xi:include href="version-info.xml" xpointer="v246"/></listitem>
857 </varlistentry>
858
859 <varlistentry><term><constant>org.freedesktop.resolve1.Aborted</constant></term>
860 <listitem><para>The look-up was aborted because the selected protocol became unavailable while the
861 operation was ongoing.</para>
862
863 <xi:include href="version-info.xml" xpointer="v246"/></listitem>
864 </varlistentry>
865
866 <varlistentry><term><constant>org.freedesktop.resolve1.NoSuchService</constant></term>
867 <listitem><para>A service look-up was successful, but the <constant class="dns">SRV</constant> record
868 reported that the service is not available.</para>
869
870 <xi:include href="version-info.xml" xpointer="v246"/></listitem></varlistentry>
871
872 <varlistentry><term><constant>org.freedesktop.resolve1.DnssecFailed</constant></term>
873 <listitem><para>The acquired response did not pass DNSSEC validation.</para>
874
875 <xi:include href="version-info.xml" xpointer="v246"/></listitem>
876 </varlistentry>
877
878 <varlistentry><term><constant>org.freedesktop.resolve1.NoTrustAnchor</constant></term>
879 <listitem><para>No chain of trust could be established for the response to a configured DNSSEC trust
880 anchor.</para>
881
882 <xi:include href="version-info.xml" xpointer="v246"/></listitem>
883 </varlistentry>
884
885 <varlistentry><term><constant>org.freedesktop.resolve1.ResourceRecordTypeUnsupported</constant></term>
886 <listitem><para>The requested resource record type is not supported on the selected DNS servers. This
887 error is generated for example when an RRSIG record is requested from a DNS server that does not
888 support DNSSEC.</para>
889
890 <xi:include href="version-info.xml" xpointer="v246"/></listitem>
891
892 </varlistentry>
893
894 <varlistentry><term><constant>org.freedesktop.resolve1.NoSuchLink</constant></term>
895 <listitem><para>No network interface with the specified network interface index exists.
896 </para>
897
898 <xi:include href="version-info.xml" xpointer="v246"/></listitem></varlistentry>
899
900 <varlistentry><term><constant>org.freedesktop.resolve1.LinkBusy</constant></term>
901 <listitem><para>The requested configuration change could not be made because
902 <citerefentry><refentrytitle>systemd-networkd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
903 already took possession of the interface and supplied configuration data for it.</para>
904
905 <xi:include href="version-info.xml" xpointer="v246"/></listitem>
906 </varlistentry>
907
908 <varlistentry><term><constant>org.freedesktop.resolve1.NetworkDown</constant></term>
909 <listitem><para>The requested look-up failed because the system is currently not connected to any
910 suitable network.</para>
911
912 <xi:include href="version-info.xml" xpointer="v246"/></listitem></varlistentry>
913
914 <varlistentry><term><constant>org.freedesktop.resolve1.DnsError.NXDOMAIN</constant></term>
915 <term><constant>org.freedesktop.resolve1.DnsError.REFUSED</constant></term>
916 <term>...</term>
917 <listitem><para>The look-up failed with a DNS return code reporting a failure. The error names used as
918 suffixes here are defined in by IANA in
919 <ulink url="https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-6">DNS RCODEs</ulink>.
920 </para>
921
922 <xi:include href="version-info.xml" xpointer="v246"/></listitem>
923 </varlistentry>
924 </variablelist>
925 </refsect1>
926
927 <refsect1>
928 <title>Examples</title>
929
930 <example>
931 <title>Introspect <interfacename>org.freedesktop.resolve1.Manager</interfacename> on the bus</title>
932
933 <programlisting>
934 $ gdbus introspect --system \
935 --dest org.freedesktop.resolve1 \
936 --object-path /org/freedesktop/resolve1
937 </programlisting>
938 </example>
939
940 <example>
941 <title>Introspect <interfacename>org.freedesktop.resolve1.Link</interfacename> on the bus</title>
942
943 <programlisting>
944 $ gdbus introspect --system \
945 --dest org.freedesktop.resolve1 \
946 --object-path /org/freedesktop/resolve1/link/_11
947 </programlisting>
948 </example>
949 </refsect1>
950
951 <xi:include href="org.freedesktop.locale1.xml" xpointer="versioning"/>
952
953 <refsect1>
954 <title>History</title>
955 <refsect2>
956 <title>The Manager Object</title>
957
958 <para><function>GetDelegate()</function> and <function>ListDelegates()</function> were added in version 258.</para>
959 </refsect2>
960 </refsect1>
961
962 <refsect1>
963 <title>See Also</title>
964 <para><simplelist type="inline">
965 <member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
966 <member><citerefentry><refentrytitle>systemd-resolved.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
967 <member><citerefentry><refentrytitle>resolvectl</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
968 </simplelist></para>
969 </refsect1>
970 </refentry>