From 0d6868f9ae83c06b23676eec0726e1f37adce30e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 26 Aug 2015 11:00:09 +0200 Subject: man: document nss-resolve --- man/nss-myhostname.xml | 13 +++--- man/nss-mymachines.xml | 3 +- man/nss-resolve.xml | 118 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 127 insertions(+), 7 deletions(-) create mode 100644 man/nss-resolve.xml (limited to 'man') diff --git a/man/nss-myhostname.xml b/man/nss-myhostname.xml index 2d36df6f6f..b7b7e1b555 100644 --- a/man/nss-myhostname.xml +++ b/man/nss-myhostname.xml @@ -111,17 +111,17 @@ Here's an example /etc/nsswitch.conf file, that enables myhostname correctly: -passwd: compat -group: compat -shadow: compat +passwd: compat +group: compat +shadow: compat -hosts: files dns mymachines myhostname +hosts: files resolve mymachines myhostname networks: files protocols: db files services: db files -ethers: db files -rpc: db files +ethers: db files +rpc: db files netgroup: nis @@ -143,6 +143,7 @@ netgroup: nis See Also systemd1, + nss-resolve8, nss-mymachines8, nsswitch.conf5, getent1 diff --git a/man/nss-mymachines.xml b/man/nss-mymachines.xml index 41ec458e4b..92c72846c1 100644 --- a/man/nss-mymachines.xml +++ b/man/nss-mymachines.xml @@ -91,7 +91,7 @@ group: compat mymachines shadow: compat -hosts: files dns mymachines myhostname +hosts: files resolve mymachines myhostname networks: files protocols: db files @@ -108,6 +108,7 @@ netgroup: nis systemd1, systemd-machined.service8, + nss-resolve8, nss-myhostname8, nsswitch.conf5, getent1 diff --git a/man/nss-resolve.xml b/man/nss-resolve.xml new file mode 100644 index 0000000000..dd402b359c --- /dev/null +++ b/man/nss-resolve.xml @@ -0,0 +1,118 @@ + + + + + + + + + nss-resolve + systemd + + + + Developer + Lennart + Poettering + lennart@poettering.net + + + + + + nss-resolve + 8 + + + + nss-resolve + libnss_resolve.so.2 + Provide hostname resolution via systemd-resolved.service + + + + libnss_resolve.so.2 + + + + Description + + nss-resolve is a plugin module for the + GNU Name Service Switch (NSS) functionality of the GNU C Library + (glibc) enabling it to resolve host names via + the + systemd-resolved8 + local network name resolution service. + + To activate the NSS module, resolve + has to be added to the line starting with + hosts: in + /etc/nsswitch.conf. + + It is recommended to place resolve early + in the nsswitch.conf line (but after the + files entry), replacing the + dns entry if it exists, to ensure DNS queries + are always routed via + systemd-resolved8. + + + + Example + + Here's an example /etc/nsswitch.conf + file, that enables resolve correctly: + +passwd: compat +group: compat +shadow: compat + +hosts: files resolve mymachines myhostname +networks: files + +protocols: db files +services: db files +ethers: db files +rpc: db files + +netgroup: nis + + Note that nss-resolve will chain-load + nss-dns if + systemd-resolved.service is not running, + ensuring that basic DNS resolution continues to work if the + service is down. + + + + + See Also + + systemd1, + systemd-resolved8, + nss-mymachines8, + nss-myhostname8, + nsswitch.conf5 + + + + -- cgit v1.2.3-54-g00ecf