Re: Using /etc/hosts, not dns

From: Herbert J. Skuhra <herbert_at_gojira.at>
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