nss-mymachines (8) - Linux Man Pages
nss-mymachines: Provide hostname resolution for local container instances.
NAMEnss-mymachines, libnss_mymachines.so.2 - Provide hostname resolution for local container instances.
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.service(8). 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.
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
Linux man pages generated by: SysTutorials