From nobody Mon Jun 26 03:36:58 2023
X-Original-To: freebsd-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 4QqD742Kz0z4jNFx
	for <freebsd-questions@mlmmj.nyi.freebsd.org>; Mon, 26 Jun 2023 03:37:20 +0000 (UTC)
	(envelope-from smithi@nimnet.asn.au)
Received: from h1.out2.mxs.au (h1.out2.mxs.au [110.232.143.236])
	(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 did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id 4QqD734zggz4P5H
	for <freebsd-questions@freebsd.org>; Mon, 26 Jun 2023 03:37:18 +0000 (UTC)
	(envelope-from smithi@nimnet.asn.au)
Authentication-Results: mx1.freebsd.org;
	none
Received: from s121.syd3.hostingplatform.net.au (s121.syd3.hostingplatform.net.au [103.27.34.4])
	by out2.mxs.au (Halon) with ESMTPS
	id b8f2be1c-13d2-11ee-b689-00163c1ebd60;
	Mon, 26 Jun 2023 13:37:06 +1000 (AEST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=nimnet.asn.au; s=default; h=Message-ID:From:CC:To:Subject:
	Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:
	Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:
	Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:
	List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;
	bh=l6KBwk0PxefSaS1p/RIWsVaFNZ7HZgbOVMtkwt7AlDM=; b=HoY5ZJfxm9tb44HVM9C2FgKseS
	GYpxAXfckN0wG88I3fssx8dKDm6583Py8sJbr0FpzQRbyOkW/ljQ6L1Abhd4/9ahKkwQ/NwbZirG3
	fQy6Qk3zvbCG6ioLsEPy2Da3jhr245vLeEenbBZFuyHMOhS4mH9lV1kSVVFKBeeOkOLvVGU6iTiBC
	NYpzqOwIxjxfDSvp5FoljwovGxHg6KKmkTDEn2j2moLdkGcp7gctrXCMCH3eNUSBFEJWAHq0cN//B
	qqpwTvCHR8H14mtSS5Rd9OLihFO+Z7j1E67hxZ1E6HSTCrs2AcVCRUv0LOq2a2r8HJkfmUuDjpR6P
	bMbUvQbg==;
Received: from [1.129.248.241] (port=60197 helo=Galaxy-J5-Pro)
	by s121.syd3.hostingplatform.net.au with esmtpsa  (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
	(Exim 4.96)
	(envelope-from <smithi@nimnet.asn.au>)
	id 1qDd2H-003Z2W-2b;
	Mon, 26 Jun 2023 13:37:06 +1000
Date: Mon, 26 Jun 2023 13:36:58 +1000
User-Agent: K-9 Mail for Android
In-Reply-To: <198956D1-6B93-4E35-AAC9-872AC146C538@gushi.org>
References: <846f37ec-c0b3-0b1a-6294-1da6a9260777@Gmail.com> <198956D1-6B93-4E35-AAC9-872AC146C538@gushi.org>
List-Id: User questions <freebsd-questions.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/freebsd-questions
List-Help: <mailto:questions+help@freebsd.org>
List-Post: <mailto:questions@freebsd.org>
List-Subscribe: <mailto:questions+subscribe@freebsd.org>
List-Unsubscribe: <mailto:questions+unsubscribe@freebsd.org>
Sender: owner-freebsd-questions@freebsd.org
X-BeenThere: freebsd-questions@freebsd.org
MIME-Version: 1.0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable
Subject: Re: Using /etc/hosts, not dns
To: "Dan Mahoney (Ports)" <freebsd@gushi.org>,Steven Friedrich <freebsdlouisville@gmail.com>
CC: FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>
From: Ian Smith <smithi@nimnet.asn.au>
Message-ID: <8140CE7E-9AEF-450E-821C-86308F627A6F@nimnet.asn.au>
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - s121.syd3.hostingplatform.net.au
X-AntiAbuse: Original Domain - freebsd.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - nimnet.asn.au
X-Get-Message-Sender-Via: s121.syd3.hostingplatform.net.au: authenticated_id: smithi@nimnet.asn.au
X-Authenticated-Sender: s121.syd3.hostingplatform.net.au: smithi@nimnet.asn.au
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-Rspamd-Queue-Id: 4QqD734zggz4P5H
X-Spamd-Bar: ----
X-Spamd-Result: default: False [-4.00 / 15.00];
	REPLY(-4.00)[];
	ASN(0.00)[asn:45638, ipnet:110.232.143.0/24, country:AU]
X-Rspamd-Pre-Result: action=no action;
	module=replies;
	Message is reply to one we originated
X-ThisMailContainsUnwantedMimeParts: N

On 26 June 2023 12:47:15 pm AEST, "Dan Mahoney (Ports)" <freebsd@gushi=2Eor=
g> wrote:

 > > On Jun 25, 2023, at 1:51 PM, Steven Friedrich
 > <freebsdlouisville@gmail=2Ecom> wrote:
 > >=20
 > > I have been using /etc/hosts for decades to identify local hosts=2E=
=20
 > I don't want the complexity of dns for this simple scenario=2E
 > >=20
 > > I issue: host slimline
 > > Host slimline not found: 3(NXDOMAIN)
 > >=20
 > > Here's the /etc/hosts:

[=2E=2E=2E]

 > > ::1			localhost localhost=2EFriedrich=2Eorg
 > > 127=2E0=2E0=2E1		localhost localhost=2EFriedrich=2Eorg
 > > 127=2E0=2E1=2E1		Slimline=2EFriedrich=2Eorg

[=2E=2E=2E]

 > > 192=2E168=2E2=2E9	Slimline=2EFriedrich=2Eorg Slimline

 > > Why won't host lookup slimline in /etc/hosts?

 > Because you also have to put it in /etc/hosts as its shortname, as
 > the two =E2=80=9Clocalhost=E2=80=9D examples above should have suggeste=
d=2E

And from the second entry it would appear to be case-sensitive, though hos=
ts(5) makes no such mention?

But then, is a second entry with a different IP address meaningful anyway?

cheers, Ian