From nobody Sun Jun 25 20:51:05 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 4Qq36S11pVz4j244 for ; Sun, 25 Jun 2023 20:51:12 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qq36Q6VY4z3sx5 for ; Sun, 25 Jun 2023 20:51:10 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=sG77eCI5; spf=pass (mx1.freebsd.org: domain of freebsdlouisville@gmail.com designates 2607:f8b0:4864:20::831 as permitted sender) smtp.mailfrom=freebsdlouisville@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-qt1-x831.google.com with SMTP id d75a77b69052e-3fde9739e20so24115581cf.2 for ; Sun, 25 Jun 2023 13:51:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687726268; x=1690318268; h=content-transfer-encoding:subject:to:content-language:user-agent :mime-version:date:message-id:from:from:to:cc:subject:date :message-id:reply-to; bh=TDXFZ5hpRioS8kg9KpnSgXMPXbRjbDswPiNux2oNGXw=; b=sG77eCI5jx2dWiK1Tu3tnpNN/wpbQ6g98yPHvqb4R+xuxx5fZhmH+4PyNBP1UwV1IW UenE0D0+WUxjCqv6fk/WqOqAQx110Q/ieIn/dQU/hBP8/Ixkm6muNE97hwRlCcF29M/k yFzU5/mYM8tcMnuOoQcoA3MhIc6JExuvKXgD/8YvAR83udMMUCLHI69N98KECQCGGBSI E26kTwENISvh709mQD/H/lT9eAZJSg98QiWKgoORBg0GVOs5l/Mj70o/V2Qqo5dnYoB8 Ry96IqYcVdf2QXSVhhrwDV3WldDR3thNHvDlgc7ic0L2lMNrzWAPVIWpYnugy4HtDwIH zTQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687726268; x=1690318268; h=content-transfer-encoding:subject:to:content-language:user-agent :mime-version:date:message-id:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TDXFZ5hpRioS8kg9KpnSgXMPXbRjbDswPiNux2oNGXw=; b=Vt4c8f2r5A2uQj/x+eBirvW4a3D2Mov2J6uUqSkpmmGSGlqdRaBneKUfmGx4SQ4M8R Njdnpeer1nakImQ8zqxrMINoOJ6zwMRI4wD6WISv+Qnt963l20EHBG2fuxHA3Uc6NzEV e0jUy/hPg/7A+1F7aouDQd+7EUgq5LyVk4o5jW5S4XtYjx4Jb6Qs8kF1BKWX3+VgTgf3 8cK7nUfbvHc9RAxeokBJpgPUN+Oecc//VekWh31kbFt0H1dpu+zHQii8snPE6Bn4vkSw wQsczRu+XFL8/hzLKTl32denLPxLYbyCoVsAzE8DGXwNu6xQAD7E29y46pEGXGORzwDp ke0w== X-Gm-Message-State: AC+VfDyqLmGUmuz/8YRSke4xbHQ3oT9h7ptGsjU0z5UXjxLo/aQufFpD daMCKKRbyMXZ145rLC106jCqwERoBRhcpg== X-Google-Smtp-Source: ACHHUZ7u64pgmk2uhqz8v8RSlC8cXS9ce5n5Sdvi0u4Q7z30E7l6Vur6knrZa+x+qzqYMkA0JcJNtw== X-Received: by 2002:ac8:5e11:0:b0:400:86fc:f983 with SMTP id h17-20020ac85e11000000b0040086fcf983mr9322819qtx.68.1687726267934; Sun, 25 Jun 2023 13:51:07 -0700 (PDT) Received: from [192.168.2.15] (34.sub-75-221-217.myvzw.com. [75.221.217.34]) by smtp.gmail.com with ESMTPSA id l8-20020ac84cc8000000b00400aa8592d1sm59694qtv.36.2023.06.25.13.51.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 25 Jun 2023 13:51:07 -0700 (PDT) From: Steven Friedrich X-Google-Original-From: Steven Friedrich Message-ID: <846f37ec-c0b3-0b1a-6294-1da6a9260777@Gmail.com> Date: Sun, 25 Jun 2023 16:51:05 -0400 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 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Content-Language: en-US To: FreeBSD Questions Mailing List Subject: Using /etc/hosts, not dns Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-0.07 / 15.00]; NEURAL_HAM_SHORT(-0.97)[-0.975]; NEURAL_SPAM_MEDIUM(0.96)[0.957]; NEURAL_SPAM_LONG(0.95)[0.947]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::831:from]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org] X-Rspamd-Queue-Id: 4Qq36Q6VY4z3sx5 X-Spamd-Bar: / X-ThisMailContainsUnwantedMimeParts: N I have been using /etc/hosts for decades to identify local hosts. I don't want the complexity of dns for this simple scenario. I issue: host slimline Host slimline not found: 3(NXDOMAIN) Here's the /etc/hosts: # $FreeBSD$ # # Host Database # # This file should contain the addresses and aliases for local hosts that # share this file. Replace 'my.domain' below with the domainname of your # machine. # # In the presence of the domain name service or NIS, this file may # not be consulted at all; see /etc/nsswitch.conf for the resolution order. # # ::1 localhost localhost.Friedrich.org 127.0.0.1 localhost localhost.Friedrich.org 127.0.1.1 Slimline.Friedrich.org # # Imaginary network. #10.0.0.2 myname.my.domain myname #10.0.0.3 myfriend.my.domain myfriend # # According to RFC 1918, you can use the following IP networks for # private nets which will never be connected to the Internet: # # 10.0.0.0 - 10.255.255.255 # 172.16.0.0 - 172.31.255.255 # 192.168.0.0 - 192.168.255.255 # # In case you want to be able to connect to the Internet, you need # real official assigned numbers. Do not try to invent your own network # numbers but instead get one from your network provider (if any) or # from your regional registry (ARIN, APNIC, LACNIC, RIPE NCC, or AfriNIC.) # # local additions 192.168.1.1 Verizon Internet 192.168.2.1 RAX80 Netgear router 192.168.2.2 NAS WDMyCloudEX2Ultra 192.168.2.3 Brother laser 192.168.2.4 AppleTV 192.168.2.5 HP-ENVY 192.168.2.6 PS5 192.168.2.7 PS4 192.168.2.9 Slimline.Friedrich.org Slimline 192.168.2.10 Pi4B 192.168.2.11 Dell Inspiron3668 MATE Cinnamon Neon Xfce PCLinux 192.168.2.12 iPhone 192.168.2.15 XPS XPS-9320 laptop and /etc/resolv.conf # Generated by resolvconf nameserver 192.168.2.1 nameserver 127.0.0.1 options edns0 and /etc/nsswitch.conf # # nsswitch.conf(5) - name service switch configuration file # $FreeBSD$ # group: compat group_compat: nis hosts: files dns netgroup: compat networks: files passwd: compat passwd_compat: nis shells: files services: compat services_compat: nis protocols: files rpc: files Why won't host lookup slimline in /etc/hosts? -- FreeBSD slimline.friedrich.org 13.2-RELEASE-p1 FreeBSD 13.2-RELEASE-p1 GENERIC amd64 SLIMLINE is GENERIC with unnecessary drivers removed /usr/ports/.git/HEAD ref: refs/heads/2023Q2