From dbda6dce3d250cee3a9d2bd1591ec1746a43585f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 7 Jan 2015 17:40:10 +0100 Subject: man: document nss-mymachines --- man/nss-mymachines.xml | 116 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 man/nss-mymachines.xml (limited to 'man/nss-mymachines.xml') diff --git a/man/nss-mymachines.xml b/man/nss-mymachines.xml new file mode 100644 index 0000000000..94673918cb --- /dev/null +++ b/man/nss-mymachines.xml @@ -0,0 +1,116 @@ + + + + + + + + + nss-mymachines + systemd + + + + Developer + Lennart + Poettering + lennart@poettering.net + + + + + + nss-mymachines + 8 + + + + nss-mymachines + libnss_mymachines.so.2 + Provide hostname resolution for local + container instances. + + + + libnss_mymachines.so.2 + + + + Description + + nss-mymachines is a plugin + for the GNU Name Service Switch (NSS) functionality of + the GNU C Library (glibc) providing + hostname resolution for containers running locally, + that are registered with + systemd-machined.service8. The + container names are resolved to IP addresses of the + specific container, ordered by their scope. + + To activate the NSS modules, + mymachines has to be added to the + line starting with hosts: in + /etc/nsswitch.conf. + + It is recommended to place + mymachines near the end of the + nsswitch.conf line to make sure + that this mapping is only used as fallback, and any + DNS or /etc/hosts based mapping + takes precedence. + + + + Example + + Here's an example + /etc/nsswitch.conf file, that + enables mymachines + correctly: + +passwd: compat +group: compat +shadow: compat + +hosts: files dns mymachines myhostname +networks: files + +protocols: db files +services: db files +ethers: db files +rpc: db files + +netgroup: nis + + + + + See Also + + systemd1, + systemd-machined.service8, + nss-myhostname8, + nsswitch.conf5, + getent1 + + + + -- cgit v1.2.3