From nobody Fri Nov 11 03:41:32 2022 X-Original-To: freebsd-users-jp@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 4N7kz21VDDz4dBHS for ; Fri, 11 Nov 2022 03:41:50 +0000 (UTC) (envelope-from ish@amail.plala.or.jp) Received: from msc11.plala.or.jp (msc11.plala.or.jp [IPv6:2400:7800:0:502e::21]) by mx1.freebsd.org (Postfix) with ESMTP id 4N7kz0477Nz3nfQ for ; Fri, 11 Nov 2022 03:41:48 +0000 (UTC) (envelope-from ish@amail.plala.or.jp) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of ish@amail.plala.or.jp designates 2400:7800:0:502e::21 as permitted sender) smtp.mailfrom=ish@amail.plala.or.jp; dmarc=none Received: from localhost ([2400:4050:9320:7a00::8]) by msc11.plala.or.jp with ESMTP id <20221111034136.UXBH18523.msc11.plala.or.jp@localhost> for ; Fri, 11 Nov 2022 12:41:36 +0900 Date: Fri, 11 Nov 2022 12:41:32 +0900 (JST) Message-Id: <20221111.124132.283070568014519821.ish@amail.plala.or.jp> To: freebsd-users-jp@freebsd.org Subject: /etc/host.conf From: Masachika ISHIZUKA X-Mailer: Mew version 6.8 on Emacs 28.2 List-Id: Discussion relevant to FreeBSD communities in Japan List-Archive: https://lists.freebsd.org/archives/freebsd-users-jp List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-users-jp@freebsd.org X-BeenThere: freebsd-users-jp@freebsd.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-VirusScan: Outbound; mvir-ac11; Fri, 11 Nov 2022 12:41:36 +0900 X-Spamd-Bar: / X-Spamd-Result: default: False [0.11 / 15.00]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_SPAM_MEDIUM(0.81)[0.807]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2400:7800:0:502e::/60]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-users-jp@freebsd.org]; ARC_NA(0.00)[]; DMARC_NA(0.00)[plala.or.jp]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:4713, ipnet:2400:7800::/32, country:JP]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-users-jp@freebsd.org]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4N7kz0477Nz3nfQ X-ThisMailContainsUnwantedMimeParts: N 石塚@杉並です。 VPSを引っ越すために、一時的に新旧サーバに同じマシン名を設定して 作業を行おうと思っています。 % cat /etc/host.conf # Auto-generated from nsswitch.conf hosts dns % という初期状態のままで、サーバ名を検索すれば/etc/hostsに記述した ものがDNSよりも優先されると思っていたのですが、どうやってもDNSを 検索してしまいます。何か勘違いしているのかと思って、/etc/hostsに 大昔から記述していた ::1 localhost localhost.ish.org 127.0.0.1 localhost localhost.ish.org を検索してみると、 % host localhost.ish.org Host localhost.ish.org not found: 3(NXDOMAIN) % host -v localhost.ish.org Trying "localhost.ish.org" Trying "localhost.ish.org.ish.org" Host localhost.ish.org not found: 3(NXDOMAIN) Received 113 bytes from 127.0.0.1#53 in 0 ms という状況なのですが、これって正常な動作なのでしょうか? VPSのマシンは 13.1-RELEASE-p3 ですが、自宅の 14.0-CURRENT で も同じ状況です。昔はちゃんとlocalhost.ish.orgが引けていた記憶が あるのですが、何か勘違いしているのかなぁ? -- Masachika ISHIZUKA