Date: Mon, 26 Jun 2023 08:37:15 +0200 From: "Herbert J. Skuhra" <herbert@gojira.at> To: questions@freebsd.org Subject: Re: Using /etc/hosts, not dns Message-ID: <ZJkyGzErOTq_EJMK@mail.bsd4all.net> In-Reply-To: <846f37ec-c0b3-0b1a-6294-1da6a9260777@Gmail.com> References: <846f37ec-c0b3-0b1a-6294-1da6a9260777@Gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ZJkyGzErOTq_EJMK>