Re: Using /etc/hosts, not dns
- Reply: Steve O'Hara-Smith : "Re: Using /etc/hosts, not dns"
- In reply to: Steven Friedrich : "Using /etc/hosts, not dns"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Jun 2023 06:37:15 UTC
On Sun, Jun 25, 2023 at 04:51:05PM -0400, Steven Friedrich wrote: > I have been using /etc/hosts for decades to identify local hosts. I don't > want the complexity of dns for this simple scenario. According to truss/ktrace the command host doesn't read /etc/nsswitch.conf and queries only DNS servers. See also host(1). > I issue: host slimline > Host slimline not found: 3(NXDOMAIN) Use 'getent hosts slimline' instead. -- Herbert