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 plugin for the GNU Name Service Switch (NSS)
14       functionality of the GNU C Library (glibc) providing hostname
15       resolution for containers running locally, that are registered with
16       systemd-machined.service(8). The container names are resolved to IP
17       addresses of the specific container, ordered by their scope.
18
19       To activate the NSS modules, "mymachines" has to be added to the line
20       starting with "hosts:" in /etc/nsswitch.conf.
21
22       It is recommended to place "mymachines" near the end of the
23       nsswitch.conf line to make sure that this mapping is only used as
24       fallback, and any DNS or /etc/hosts based mapping takes precedence.
25

EXAMPLE

27       Here's an example /etc/nsswitch.conf file, that enables mymachines
28       correctly:
29
30           passwd:   compat
31           group:    compat
32           shadow:   compat
33
34           hosts:    files dns mymachines myhostname
35           networks:       files
36
37           protocols:      db files
38           services:       db files
39           ethers:   db files
40           rpc:      db files
41
42           netgroup:       nis
43

SEE ALSO

45       systemd(1), systemd-machined.service(8), nss-myhostname(8),
46       nsswitch.conf(5), getent(1)
47
48
49
50systemd 219                                                  NSS-MYMACHINES(8)
Impressum