diff --git a/man/nss-myhostname.xml b/man/nss-myhostname.xml index 98eb0ec77e..4a33149a73 100644 --- a/man/nss-myhostname.xml +++ b/man/nss-myhostname.xml @@ -73,13 +73,12 @@ To activate the NSS modules, add myhostname to the line starting with hosts: in /etc/nsswitch.conf. - It is recommended to place myhostname either between resolve - and "traditional" modules like dns, or after them. In the first version, well-known - names like localhost and the machine hostname are given higher priority than the - external configuration. This is recommended when the external DNS servers and network are not absolutely - trusted. In the second version, external configuration is given higher priority and - nss-myhostname only provides a fallback mechanism. This might be suitable in closely - controlled networks, for example on a company LAN. + It is recommended to place myhostname after file and before dns. + This resolves well-known hostnames like localhost + and the machine hostnames locally. It is consistent with the behaviour + of nss-resolve, and still allows overriding via + /etc/hosts. + @@ -95,10 +94,7 @@ shadow: compat systemd gshadow: files systemd -# Either (untrusted network, see above): hosts: mymachines resolve [!UNAVAIL=return] files myhostname dns -# Or (only trusted networks): -hosts: mymachines resolve [!UNAVAIL=return] files dns myhostname networks: files protocols: db files