NAME | SYNOPSIS | DESCRIPTION | EXAMPLE | SEE ALSO | COLOPHON

NSS-MYMACHINES(8)              nss-mymachines              NSS-MYMACHINES(8)

NAME         top

       nss-mymachines, libnss_mymachines.so.2 - Provide hostname resolution
       for local container instances.

SYNOPSIS         top

       libnss_mymachines.so.2

DESCRIPTION         top

       nss-mymachines is a plug-in module for the GNU Name Service Switch
       (NSS) functionality of the GNU C Library (glibc), providing hostname
       resolution for the names of containers running locally that are
       registered with systemd-machined.service(8). The container names are
       resolved to the IP addresses of the specific container, ordered by
       their scope. This functionality only applies to containers using
       network namespacing.

       The module also resolves user and group IDs used by containers to
       user and group names indicating the container name, and back. This
       functionality only applies to containers using user namespacing.

       To activate the NSS module, add "mymachines" to the lines starting
       with "hosts:", "passwd:" and "group:" in /etc/nsswitch.conf.

       It is recommended to place "mymachines" after the "files" or "compat"
       entry of the /etc/nsswitch.conf lines to make sure that its mappings
       are preferred over other resolvers such as DNS, but so that
       /etc/hosts, /etc/passwd and /etc/group based mappings take
       precedence.

EXAMPLE         top

       Here is an example /etc/nsswitch.conf file that enables
       nss-mymachines correctly:

           passwd:         compat mymachines systemd
           group:          compat mymachines systemd
           shadow:         compat

           hosts:          files mymachines resolve [!UNAVAIL=return] dns myhostname
           networks:       files

           protocols:      db files
           services:       db files
           ethers:         db files
           rpc:            db files

           netgroup:       nis

SEE ALSO         top

       systemd(1), systemd-machined.service(8), nss-systemd(8),
       nss-resolve(8), nss-myhostname(8), nsswitch.conf(5), getent(1)

COLOPHON         top

       This page is part of the systemd (systemd system and service manager)
       project.  Information about the project can be found at 
       ⟨http://www.freedesktop.org/wiki/Software/systemd⟩.  If you have a bug
       report for this manual page, see 
       ⟨http://www.freedesktop.org/wiki/Software/systemd/#bugreports⟩.  This
       page was obtained from the project's upstream Git repository 
       ⟨https://github.com/systemd/systemd.git⟩ on 2017-09-15.  If you dis‐
       cover any rendering problems in this HTML version of the page, or you
       believe there is a better or more up-to-date source for the page, or
       you have corrections or improvements to the information in this
       COLOPHON (which is not part of the original manual page), send a mail
       to man-pages@man7.org

systemd 234                                                NSS-MYMACHINES(8)

Pages that refer to this page: systemd.directives(7)systemd.index(7)nss-myhostname(8)nss-resolve(8)nss-systemd(8)systemd-machined.service(8)