X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=man%2Fsystemd.dnssd.xml;h=d7e6caddf1e9bcea4794653cc1e900d0b693fdb1;hb=2e3e2750bb85239aad2a02b5f6afa26f1588f5f7;hp=1270e08cd2bb78aea2ee75de7778845aa6907378;hpb=1b2aeb08e2b1cb52b4ae8ff8134643b14aa9547c;p=thirdparty%2Fsystemd.git diff --git a/man/systemd.dnssd.xml b/man/systemd.dnssd.xml index 1270e08cd2b..d7e6caddf1e 100644 --- a/man/systemd.dnssd.xml +++ b/man/systemd.dnssd.xml @@ -1,40 +1,15 @@ - - + + - - - + systemd.dnssd systemd - - - - Developer - Dmitry - Rozhkov - dmitry.rozhkov@intel.com - - @@ -61,15 +36,16 @@ The main network service file must have the extension .dnssd; other extensions are ignored. - The .dnssd files are read from the files located in the system - network directory /usr/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-supplied - configuration file with a local file if needed. + 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-supplied configuration file with a + local file if needed. Along with the network service file foo.dnssd, a "drop-in" directory foo.dnssd.d/ may exist. All files with the suffix @@ -77,20 +53,18 @@ parsed. This is useful to alter or add configuration settings, without having to modify the main configuration file. Each drop-in file must have appropriate section headers. - In addition to /etc/systemd/dnssd, drop-in .d - directories can be placed in /usr/lib/systemd/dnssd or - /run/systemd/dnssd directories. Drop-in files in - /etc take precedence over those in /run which in turn - take precedence over those in /usr/lib. Drop-in files under any of these - directories take precedence over the main network service file wherever located. (Of course, since - /run is temporary and /usr/lib is for vendors, it is - unlikely drop-ins should be used in either of those places.) + In addition to /etc/systemd/dnssd, drop-in .d directories + can be placed in /usr/lib/systemd/dnssd or /run/systemd/dnssd + directories. Drop-in files in /etc take precedence over those in + /run which in turn take precedence over those in /usr/lib or + /usr/local/lib. Drop-in files under any of these directories take precedence over + the main network service file wherever located. [Service] Section Options - The network service file contains a [Service] + The network service file contains a [Service] section, which specifies a discoverable network service announced in a local network with Multicast DNS broadcasts. @@ -101,7 +75,7 @@ An instance name of the network service as defined in the section 4.1.1 of RFC 6763, e.g. webserver. The option supports simple specifier expansion. The following expansions are understood: - +
Specifiers available @@ -115,26 +89,16 @@ - - %m - Machine ID - The machine ID of the running system, formatted as string. See machine-id5 for more information. - - - %b - Boot ID - The boot ID of the running system, formatted as string. See random4 for more information. - - - %H - Host name - The hostname of the running system. - - - %v - Kernel release - Identical to uname -r output. - + + + + + + + + + +
@@ -206,7 +170,7 @@ # /etc/systemd/dnssd/http.dnssd [Service] -Name=%h +Name=%H Type=_http._tcp Port=80 TxtText=path=/stats/index.html t=temperature_sensor @@ -214,10 +178,10 @@ TxtText=path=/stats/index.html t=temperature_sensor This makes the http server running on the host discoverable in the local network given MulticastDNS is enabled on the network interface. - Now the utility systemd-resolve should be able to resolve the + Now the utility resolvectl should be able to resolve the service to the host's name: - $ systemd-resolve --service meteo._http._tcp.local + $ resolvectl service meteo._http._tcp.local meteo._http._tcp.local: meteo.local:80 [priority=0, weight=0] 169.254.208.106%senp0s21f0u2u4 fe80::213:3bff:fe49:8aa%senp0s21f0u2u4 @@ -251,7 +215,8 @@ meteo._http._tcp.local: meteo.local:80 [priority=0, weight=0] See Also systemd1, - systemd-resolved.service8 + systemd-resolved.service8, + resolvectl1