{"id":4639,"date":"2022-12-20T18:09:24","date_gmt":"2022-12-20T21:09:24","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/systemd-dnssd-man5\/"},"modified":"2022-12-20T18:09:24","modified_gmt":"2022-12-20T21:09:24","slug":"systemd-dnssd-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/systemd-dnssd-man5\/","title":{"rendered":"SYSTEMD.DNSSD (man5)"},"content":{"rendered":"<h1 align=\"center\">SYSTEMD.DNSSD<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#[SERVICE] SECTION OPTIONS\">[SERVICE] SECTION OPTIONS<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#NOTES\">NOTES<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">systemd.dnssd \u2212 DNS\u2212SD configuration<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>network_service<\/i>.dnssd<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">DNS\u2212SD setup is performed by <b>systemd-resolved<\/b>(8).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The main network service file must have the extension .dnssd; other extensions are ignored.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The .dnssd files are read from the files located in the system network directories \/usr\/lib\/systemd\/dnssd and \/usr\/local\/lib\/systemd\/dnssd, the volatile runtime network directory \/run\/systemd\/dnssd and the local administration network directory \/etc\/systemd\/dnssd. All configuration files are collectively sorted and processed in lexical order, regardless of the directories in which they live. However, files with identical filenames replace each other. Files in \/etc have the highest priority, files in \/run take precedence over files with the same name in \/usr\/lib. This can be used to override a system\u2212supplied configuration file with a local file if needed.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Along with the network service file foo.dnssd, a &#8220;drop\u2212in&#8221; directory foo.dnssd.d\/ may exist. All files with the suffix &#8220;.conf&#8221; from this directory will be parsed after the file itself is parsed. This is useful to alter or add configuration settings, without having to modify the main configuration file. Each drop\u2212in file must have appropriate section headers.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">In addition to \/etc\/systemd\/dnssd, drop\u2212in &#8220;.d&#8221; directories can be placed in \/usr\/lib\/systemd\/dnssd or \/run\/systemd\/dnssd directories. Drop\u2212in files in \/etc take precedence over those in \/run which in turn take precedence over those in \/usr\/lib or \/usr\/local\/lib. Drop\u2212in files under any of these directories take precedence over the main network service file wherever located.<\/p>\n<h2>[SERVICE] SECTION OPTIONS <a name=\"[SERVICE] SECTION OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The network service file contains a [Service] section, which specifies a discoverable network service announced in a local network with Multicast DNS broadcasts.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>Name=<\/i><\/p>\n<p style=\"margin-left:17%;\">An instance name of the network service as defined in the section 4.1.1 of <b><font color=\"#0000FF\">RFC 6763<\/font><\/b> <small><font color=\"#000000\">[1]<\/font><\/small> <font color=\"#000000\">, e.g. &#8220;webserver&#8221;.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">The option supports simple specifier expansion. The following expansions are understood:<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"><b>Table\u00a01.\u00a0Specifiers available<\/b><\/font><\/p>\n<p align=\"center\"><font color=\"#000000\"><b><img decoding=\"async\" src=\"grohtml-1189501.png\" alt=\"Image grohtml-1189501.png\"><\/b><\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><i>Type=<\/i><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">A type of the network service as defined in the section 4.1.2 of<\/font> <b><font color=\"#0000FF\">RFC 6763<\/font><\/b> <small><font color=\"#000000\">[1]<\/font><\/small> <font color=\"#000000\">, e.g. &#8220;_http._tcp&#8221;.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><i>Port=<\/i><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">An IP port number of the network service.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><i>Priority=<\/i><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">A priority number set in SRV resource records corresponding to the network service.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><i>Weight=<\/i><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">A weight number set in SRV resource records corresponding to the network service.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><i>TxtText=<\/i><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">A whitespace\u2212separated list of arbitrary key\/value pairs conveying additional information about the named service in the corresponding TXT resource record, e.g. &#8220;path=\/portal\/index.html&#8221;. Keys and values can contain C\u2212style escape sequences which get translated upon reading configuration files.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">This option together with <i>TxtData=<\/i> may be specified more than once, in which case multiple TXT resource records will be created for the service. If the empty string is assigned to this option, the list is reset and all prior assignments will have no effect.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><i>TxtData=<\/i><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">A whitespace\u2212separated list of arbitrary key\/value pairs conveying additional information about the named service in the corresponding TXT resource record where values are base64\u2212encoded string representing any binary data, e.g. &#8220;data=YW55IGJpbmFyeSBkYXRhCg==&#8221;. Keys can contain C\u2212style escape sequences which get translated upon reading configuration files.<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">This option together with <i>TxtText=<\/i> may be specified more than once, in which case multiple TXT resource records will be created for the service. If the empty string is assigned to this option, the list is reset and all prior assignments will have no effect.<\/font><\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>Example\u00a01.\u00a0HTTP service<\/b><\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"># \/etc\/systemd\/dnssd\/http.dnssd <br \/> [Service] <br \/> Name=%H <br \/> Type=_http._tcp <br \/> Port=80 <br \/> TxtText=path=\/stats\/index.html t=temperature_sensor<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">This makes the http server running on the host discoverable in the local network given MulticastDNS is enabled on the network interface.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">Now the utility &#8220;resolvectl&#8221; should be able to resolve the service to the host&#8217;s name:<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">$ resolvectl service meteo._http._tcp.local <br \/> meteo._http._tcp.local: meteo.local:80 [priority=0, weight=0] <br \/> 169.254.208.106%senp0s21f0u2u4 <br \/> fe80::213:3bff:fe49:8aa%senp0s21f0u2u4 <br \/> path=\/stats\/index.html <br \/> t=temperature_sensor <br \/> (meteo\/_http._tcp\/local)<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">\u2212\u2212 Information acquired via protocol mDNS\/IPv6 in 4.0ms. <br \/> \u2212\u2212 Data is authenticated: yes<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">&#8220;Avahi&#8221; running on a different host in the same local network should see the service as well:<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">$ avahi\u2212browse \u2212a \u2212r <br \/> + enp3s0 IPv6 meteo Web Site local <br \/> + enp3s0 IPv4 meteo Web Site local <br \/> = enp3s0 IPv6 meteo Web Site local <br \/> hostname = [meteo.local] <br \/> address = [fe80::213:3bff:fe49:8aa] <br \/> port = [80] <br \/> txt = [&#8220;path=\/stats\/index.html&#8221; &#8220;t=temperature_sensor&#8221;] <br \/> = enp3s0 IPv4 meteo Web Site local <br \/> hostname = [meteo.local] <br \/> address = [169.254.208.106] <br \/> port = [80] <br \/> txt = [&#8220;path=\/stats\/index.html&#8221; &#8220;t=temperature_sensor&#8221;]<\/font><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>systemd<\/b>(1), <b>systemd-resolved.service<\/b>(8), <b>resolvectl<\/b>(1)<\/font><\/p>\n<h2>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">1.<\/font><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"12%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">RFC 6763<\/font><\/p>\n<\/td>\n<td width=\"71%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">https:\/\/tools.ietf.org\/html\/rfc6763<\/font><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  systemd.dnssd \u2212 DNS\u2212SD configuration <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1291,978],"class_list":["post-4639","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-man5","tag-systemd"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4639","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4639"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4639\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}