From nobody Mon Jun 10 00:24:14 2024 X-Original-To: bugs@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 4VyCGl1zNGz5NWb0 for ; Mon, 10 Jun 2024 00:24:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VyCGk5wB0z4NcT for ; Mon, 10 Jun 2024 00:24:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717979054; a=rsa-sha256; cv=none; b=oVg0lNmphcLOlb/69prR7Flrp3oYfZ6vrQkYCU7VcW1/26IxsftDsHSqPupGYmRZhfDPo7 7Lpf+6TtsFvwip2HvY9oocYIzTnlusEfBP4AZ4DpH4njBvZNXUDuOhlxqZJdSfJED9+Icd /xnYD/7FPWgM0lYZO5wuYqIyJ60NkS6wJNSFYQyEpbhK0S0mgiw0B1I3n+Fq6bP/7kkA97 XGGX4KRmY6f4CSJZz8dCzT5jEwoix16y0RMkk3rEsv0MCNLRaHZUqun1Iy5+2Ua/poWS6P +bk5FeEGL90WjLhlqU3h/ZT5jw0VZ923p4EQLRBv6bbyE3yQqZw6lQn/oAzMmg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717979054; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=v3r7X+S/IUoLYbKPRksXLHV9kVsV1AEtMZ1470XJhOY=; b=GSQto2q3sbx5t4gpjdqR/KZrF4BEygddlwIqCDcWU77AUnWY0KkYxq4f7gtYBJWQLcI6KS Yx+e2c9fjP+85Mo9Dkg2wY4UfUxWJ26Vwr2N3ZtHHjPkVy9ea9ryMlRdfkPeprxRBAFEWi gUmiWGFSqIZkNuZeemwlORWENb+lYYTQeOcnsxqs7bpqh/Yqhb835puGSD6bDzwSAjzMfS EST0wdkwugAWn+kx5genQ5q+4FJSiaiYoOciC4/qpk/1bnHzaiUOUfBV1OiA8dq1+3pJb+ b1CZ6vCR8zrbChEVDc31rcuyvswrsKkFzhOL/OnitXDFuNmkFBNWim8iqwl4+w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VyCGk4cNKz13vq for ; Mon, 10 Jun 2024 00:24:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 45A0OEja026978 for ; Mon, 10 Jun 2024 00:24:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 45A0OEWO026977 for bugs@FreeBSD.org; Mon, 10 Jun 2024 00:24:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 279618] getnameinfo - IPv6 problem Date: Mon, 10 Jun 2024 00:24:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: ipv6 X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bz@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279618 Bug ID: 279618 Summary: getnameinfo - IPv6 problem Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Keywords: ipv6 Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: bz@FreeBSD.org 6cb9418289f90 introduced a special check on the first nibble of an in6_addr: + switch (sin6->sin6_addr.s6_addr[0]) { + case 0x00: If it doesn't fall into any of the two categories it will not attempt to do name resolution and lookup the PTR because it sets NI_NUMERICHOST. I cannot see why this "else" case was ever added (and someone should dig in= to the KAME archives to understand). Also someone should check if POSIX says anything beyond the RFC and fully understand what is supposed to go on. Addresses with the IPv6 DNS64 default prefix 64:ff9b::/96 such as 64:ff9b::4007:8d09 (zoo) will not be resolved and that does indeed break software (e.g. postfix in an ipv6-only setup behind a NAT64). Manually calling hp =3D getipnodebyaddr(&sin6.sin6_addr, sizeof(struct in6_addr), AF_INET6, &h_error); will result in the correct answer from an accordingly setup resolver. --=20 You are receiving this mail because: You are the assignee for the bug.=