1NSS-MYMACHINES(8)               nss-mymachines               NSS-MYMACHINES(8)
2
3
4

NAME

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

SYNOPSIS

10       libnss_mymachines.so.2
11

DESCRIPTION

13       nss-mymachines is a plug-in module for the GNU Name Service Switch
14       (NSS) functionality of the GNU C Library (glibc), providing hostname
15       resolution for the names of containers running locally that are
16       registered with systemd-machined.service(8). The container names are
17       resolved to the IP addresses of the specific container, ordered by
18       their scope. This functionality only applies to containers using
19       network namespacing.
20
21       The module also resolves user and group IDs used by containers to user
22       and group names indicating the container name, and back. This
23       functionality only applies to containers using user namespacing.
24
25       To activate the NSS module, add "mymachines" to the lines starting with
26       "hosts:", "passwd:" and "group:" in /etc/nsswitch.conf.
27
28       It is recommended to place "mymachines" after the "files" or "compat"
29       entry of the /etc/nsswitch.conf lines to make sure that its mappings
30       are preferred over other resolvers such as DNS, but so that /etc/hosts,
31       /etc/passwd and /etc/group based mappings take precedence.
32

EXAMPLE

34       Here is an example /etc/nsswitch.conf file that enables nss-mymachines
35       correctly:
36
37           passwd:         compat mymachines systemd
38           group:          compat mymachines systemd
39           shadow:         compat
40
41           hosts:          files mymachines resolve [!UNAVAIL=return] dns myhostname
42           networks:       files
43
44           protocols:      db files
45           services:       db files
46           ethers:         db files
47           rpc:            db files
48
49           netgroup:       nis
50

SEE ALSO

52       systemd(1), systemd-machined.service(8), nss-systemd(8), nss-
53       resolve(8), nss-myhostname(8), nsswitch.conf(5), getent(1)
54
55
56
57systemd 239                                                  NSS-MYMACHINES(8)
Impressum