From owner-freebsd-net@freebsd.org Mon May 3 00:52:24 2021 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A94A2621EF1 for ; Mon, 3 May 2021 00:52:24 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FYPZc3gNQz3mZ6 for ; Mon, 3 May 2021 00:52:24 +0000 (UTC) (envelope-from bc979@lafn.org) Received: by mailman.nyi.freebsd.org (Postfix) id 7DF69621EF0; Mon, 3 May 2021 00:52:24 +0000 (UTC) Delivered-To: net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7DBF0622354 for ; Mon, 3 May 2021 00:52:24 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from mail.sermon-archive.info (sermon-archive.info [47.181.130.121]) by mx1.freebsd.org (Postfix) with ESMTP id 4FYPZb5Jlpz3mhy for ; Mon, 3 May 2021 00:52:23 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from smtpclient.apple (mini [10.0.1.251]) by mail.sermon-archive.info (Postfix) with ESMTPSA id 4FYPZZ6QVdz2fjSF for ; Sun, 2 May 2021 17:52:22 -0700 (PDT) From: Doug Hardie Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: Re: Problem with resolver/host Date: Sun, 2 May 2021 17:52:22 -0700 References: <041E6B07-0797-436F-909F-5B77ED77DAEC@sermon-archive.info> To: "net@freebsd.org" In-Reply-To: <041E6B07-0797-436F-909F-5B77ED77DAEC@sermon-archive.info> Message-Id: <51F58892-1383-4698-8984-173CDE01AB67@sermon-archive.info> X-Mailer: Apple Mail (2.3654.80.0.2.43) X-Virus-Scanned: clamav-milter 0.103.1 at mail X-Virus-Status: Clean X-Rspamd-Queue-Id: 4FYPZb5Jlpz3mhy X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bc979@lafn.org designates 47.181.130.121 as permitted sender) smtp.mailfrom=bc979@lafn.org X-Spamd-Result: default: False [-1.39 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_SPAM_SHORT(0.30)[0.301]; NEURAL_HAM_MEDIUM(-0.99)[-0.994]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[47.181.130.121:from]; R_SPF_ALLOW(-0.20)[+mx:c]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[net@freebsd.org]; DMARC_NA(0.00)[lafn.org: no valid DMARC record]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[47.181.130.121:from:127.0.2.255]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_EQ_ADDR_ALL(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:5650, ipnet:47.181.128.0/18, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[net] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2021 00:52:24 -0000 > On 20 April 2021, at 14:12, Doug Hardie wrote: >=20 > I suspect this is an issue with the resolver, but it could also be in = host. I have the following in /etc/resolv.conf: >=20 > # Generated by resolvconf > nameserver fe80::213:72ff:fec3:180f%bge0 > nameserver fe80::120c:6bff:fee9:cdf7%bge0 >=20 > There is a DNS server running at the first address that supplies IPv6 = addresses. When I ping the first address, it succeeds: >=20 > test# ping fe80::213:72ff:fec3:180f%bge0 > PING6(56=3D40+8+8 bytes) fe80::6a5b:35ff:fed3:4eda%bge0 --> = fe80::213:72ff:fec3:180f%bge0 > 16 bytes from fe80::213:72ff:fec3:180f%bge0, icmp_seq=3D0 hlim=3D64 = time=3D0.321 ms > 16 bytes from fe80::213:72ff:fec3:180f%bge0, icmp_seq=3D1 hlim=3D64 = time=3D0.553 ms > 16 bytes from fe80::213:72ff:fec3:180f%bge0, icmp_seq=3D2 hlim=3D64 = time=3D0.544 ms > 16 bytes from fe80::213:72ff:fec3:180f%bge0, icmp_seq=3D3 hlim=3D64 = time=3D0.424 ms >=20 > However, host client.global.example return an error: >=20 > test# host client.global.example > ;; connection timed out; no servers could be reached >=20 > ktrace of host shows that either host or the resolver is trying to use = the address without the %bge0 which is why that error occurs: >=20 > 2027 host STRU struct sockaddr { AF_INET6, = [fe80::213:72ff:fec3:180f]:53 } > 2027 host RET sendto -1 errno 51 Network is unreachable >=20 > Is this a bug or is there some configuration item I have missed: >=20 I have filed a bug report: Bug 255316 on this. However, it is still = sitting in limbo: =20 Assignee: freebsd-bugs (Nobody) I am not sure that the patch I provided is not going to break something = else. I am not sure this is the right place to ask these questions. = The resolver is used for more than just finding the default route. I = also have no idea how to build the parts needed to test it. I know the = patch works fine in a simple test case where I extracted that portion of = the code as a standalone test. I don't want to do a buildworld as that = machine has no cooling and overheats quickly. =20 -- Doug=