X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=man%2Fnss-myhostname.xml;h=18a6f5f665a22ef863b1bd596b90f3c91128bdc1;hb=08540a9591efe105439be81fc43d6dc65b715978;hp=859bec29e3ec5dc0fe7dc895da7558cc0debab81;hpb=70d54fca18f52e20c07f37a6c86133229521ee47;p=thirdparty%2Fsystemd.git diff --git a/man/nss-myhostname.xml b/man/nss-myhostname.xml index 859bec29e3e..18a6f5f665a 100644 --- a/man/nss-myhostname.xml +++ b/man/nss-myhostname.xml @@ -3,39 +3,14 @@ "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> - + nss-myhostname systemd - - - - Developer - Lennart - Poettering - lennart@poettering.net - - @@ -57,12 +32,11 @@ Description - nss-myhostname is a plugin for the GNU - Name Service Switch (NSS) functionality of the GNU C Library - (glibc), primarily providing hostname resolution - for the locally configured system hostname as returned by - gethostname2. - The precise hostnames resolved by this module are: + nss-myhostname is a plug-in module for the GNU Name Service Switch (NSS) functionality of + the GNU C Library (glibc), primarily providing hostname resolution for the locally configured + system hostname as returned by + gethostname2. The precise + hostnames resolved by this module are: The local, configured hostname is resolved to @@ -71,16 +45,16 @@ is on the local loopback) and the IPv6 address ::1 (which is the local host). - The hostname localhost is - resolved to the IP addresses 127.0.0.1 and - ::1. + The hostnames localhost and + localhost.localdomain (as well as any hostname + ending in .localhost or .localhost.localdomain) + are resolved to the IP addresses 127.0.0.1 and ::1. - The hostname gateway is + The hostname _gateway is resolved to all current default routing gateway addresses, ordered by their metric. This assigns a stable hostname to the current gateway, useful for referencing it independently of the current network configuration state. - Various software relies on an always-resolvable local @@ -93,29 +67,25 @@ changing /etc/hosts is unnecessary, and on many systems, the file becomes entirely optional. - To activate the NSS modules, myhostname - has to be added to the line starting with - hosts: in - /etc/nsswitch.conf. + To activate the NSS modules, add myhostname to the line starting with + hosts: in /etc/nsswitch.conf. - It is recommended to place myhostname - last in the nsswitch.conf line to make sure - that this mapping is only used as fallback, and that any DNS or - /etc/hosts based mapping takes - precedence. + It is recommended to place myhostname last in the nsswitch.conf' + hosts: line to make sure that this mapping is only used as fallback, and that any DNS or + /etc/hosts based mapping takes precedence. Example - Here is an example /etc/nsswitch.conf - file that enables myhostname correctly: + Here is an example /etc/nsswitch.conf file that enables + nss-myhostname correctly: -passwd: compat mymachines -group: compat mymachines +passwd: compat mymachines systemd +group: compat mymachines systemd shadow: compat -hosts: files resolve mymachines myhostname +hosts: files mymachines resolve [!UNAVAIL=return] dns myhostname networks: files protocols: db files @@ -143,6 +113,7 @@ netgroup: nis See Also systemd1, + nss-systemd8, nss-resolve8, nss-mymachines8, nsswitch.conf5,