On 10/02/2023 13:04, Greg Wooledge wrote:
On Fri, Feb 10, 2023 at 05:58:07AM -0500, gene heskett wrote:hosts: files mymachines dns myhostnameThis is wrong. I don't know where you got it from, but "mymachines" and "myhostname" are not valid entries in this file. NOT EVEN IF THEY ARE FUCKING METASYNTACTIC PLACEHOLDERS for "coyote.den" and "lupus" or whatever the FUCK your actual file says.
They are if you have the correct NSS plugins available. "mymachines" comes from libnss-mymachines:nss-mymachines is a plugin for the GNU Name Service Switch (NSS) functionality of the GNU C Library (glibc) providing hostname resolution for local containers that are registered with systemd-machined.service(8). The container names are resolved to IP addresses of the specific container, ordered by their scope.
.Installing this package automatically adds mymachines to /etc/nsswitch.conf.
"myhostname" comes from libnss-myhostname:This package contains a plugin for the Name Service Switch, providing host name resolution for the locally configured system hostname as returned by gethostname(2). It returns all locally configured public IP addresses or -- if
none are configured, the IPv4 address 127.0.1.1 (which is on the local loopback) and the IPv6 address ::1 (which is the local host). . A lot of software relies on that the local host name is resolvable. Thispackage provides an alternative to the fragile and error-prone manual editing
of /etc/hosts. .Installing this package automatically adds myhostname to /etc/nsswitch.conf.
There are several other NSS plugins, offering a variety of methods of discovering "names": https://packages.debian.org/search?keywords=libnss-
Note that the package descriptions explicitly state that just installing the plugins will activate them; I don't know if uninstalling them removes the entry in /etc/nsswitch.conf (I would hope so).
OpenPGP_signature
Description: OpenPGP digital signature