From nobody Mon Jun 26 06:37:15 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QqJ6s0fSCz4hs8S for ; Mon, 26 Jun 2023 06:37:25 +0000 (UTC) (envelope-from herbert@gojira.at) Received: from mail.bsd4all.net (mail.bsd4all.net [IPv6:2a01:4f8:13b:240c::25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail.bsd4all.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QqJ6r1Qmhz3jV0 for ; Mon, 26 Jun 2023 06:37:23 +0000 (UTC) (envelope-from herbert@gojira.at) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gojira.at header.s=mail202005 header.b="jWUk/EsZ"; spf=pass (mx1.freebsd.org: domain of herbert@gojira.at designates 2a01:4f8:13b:240c::25 as permitted sender) smtp.mailfrom=herbert@gojira.at; dmarc=none Date: Mon, 26 Jun 2023 08:37:15 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gojira.at; s=mail202005; t=1687761435; bh=+sDFCK3j6Oh61yy/D53LGFl0AgKhcL3Hdx+uDvfq6Z4=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=jWUk/EsZMjHxpP+6tJh0n87XK94Bburqv74v/wfCwBLjanr4KRy1YZC82piFL6/m5 sblKTO33Vq7WK9fyNi3LU5V3KpSadvCt0agG2lhqnvizPgXuLG5PlozJ9pVeM4qXYJ zxbngUHOJ6VOgVaA7JetVHJHzxyk4E5G9WTloDQTKS/WV2O50dHRKdmg3AtdUxd3Fn ynKCfVM5XdaQDf5uYppgGsCPWweJjkvrH3b4bHI1czm9b4I6fcEI9UOMjxlaDzgcdg PuONnvQ8MXXFen+FzzTpouOChpjpUc4p18gFo94gSI1kAQ+KioMBExxXAHR5/pOO9o VmZlYaWfFXkEw== From: "Herbert J. Skuhra" To: questions@freebsd.org Subject: Re: Using /etc/hosts, not dns Message-ID: References: <846f37ec-c0b3-0b1a-6294-1da6a9260777@Gmail.com> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <846f37ec-c0b3-0b1a-6294-1da6a9260777@Gmail.com> X-Spamd-Result: default: False [-3.13 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.63)[-0.629]; R_SPF_ALLOW(-0.20)[+ip6:2a01:4f8:13b:240c::25]; R_DKIM_ALLOW(-0.20)[gojira.at:s=mail202005]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DKIM_TRACE(0.00)[gojira.at:+]; ARC_NA(0.00)[]; DMARC_NA(0.00)[gojira.at]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE] X-Rspamd-Queue-Id: 4QqJ6r1Qmhz3jV0 X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N 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