From nobody Sun Sep 17 23:27:02 2023 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 4RpkbW1nfvz4t222 for ; Sun, 17 Sep 2023 23:27:03 +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 4RpkbV5KBjz3Tk2 for ; Sun, 17 Sep 2023 23:27:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694993222; a=rsa-sha256; cv=none; b=q9kGFoezTunqYbgKTZm8ncoW2dujvt03bh0oDuYtif1FzFr1BdhLuo04JGgAhSTRjnVlf3 ud5K3hY2ZGXcEZjUmA2QLivhyiqeu4WDoBYN6jrIButRyeMgKv1OOMxVzUtwPfZasyRzok u5NmR+iNYvR5Pdmw1zoXyUf5uQss2M1tuJwHq4xpVAp+fOzrz3hKq/BXVuSAS6A3+beveQ rp39X9jqNGtRYTSB28YsgoL4i3nl0R6lSgyLd8w4DXTNWLLpk7hT2W4h4DU2aguQg9eoLu flEeeFQF4tDTzn+TAO/qb6Ych85ifM5QDOKKxvqpIfPl5QIAsr/Wxx3+IJWlFA== 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=1694993222; 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=dXruP1MCUrMri5cw9klF0ggWy1QVGXKJiHMyXPdSQvw=; b=Tx7OoYpciG1NYNeI6A65F14+btME0jSYarg99JskdIROg43UKe1wfY+ITgnHMct96HvpoT SeojmQzPX4eO0Py3MKcOAjw1ETjezTMZAnvn72Ab4tEOoJT/TcFVuno2ag0wRamXA9Q+Zd Yli0INN2KbIzLm2/CWcXjst1LNAnVmaoBxJ2uIffSnPn7+9aIDXKYBvY1NY6YRsN3nh0u8 XVO4XvOBC5JjEotREByxN4+mTiz9w9tXcAdogPkFOdMkS0Of4FN3dzoZJuNWg/BFtF4H0s nZG2xPAi3elWsQekZoHJvbJh2gU3FeFfgQ/JCK/hdAFmbtb+SgMeB6Es9K1nBg== 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 4RpkbV4NGtz1786 for ; Sun, 17 Sep 2023 23:27:02 +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 38HNR20Y095144 for ; Sun, 17 Sep 2023 23:27:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38HNR2Rt095143 for bugs@FreeBSD.org; Sun, 17 Sep 2023 23:27:02 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 273912] local_unbound misreporting "Address family for hostname not supported" Date: Sun, 17 Sep 2023 23:27:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mb180615@pjb.cc 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 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=3D273912 Bug ID: 273912 Summary: local_unbound misreporting "Address family for hostname not supported" Product: Base System Version: 13.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: mb180615@pjb.cc Overview: When a domain name exists but has no A record, the FreeBSD 13.2 getaddrinfo() system library function returns EAI_SYSTEM with an errno value of EAFNOSUPPORT, instead of EAI_NODATA. This results in a misleading error message ("Address family for hostname not supported", instead of "Name does not resolve"). The problem does not exist in FreeBSD 13.1-RC4 or earlier. Steps to Reproduce: Compile the getaddrinfo.c test program in $postfix_source/auxiliary/name-addr-test, where $postfix_source is the top-level directory of a Postfix source-sode distribution. $ cd $postfix_source/auxiliary/name-addr-test $ make getaddrinfo Run the test program=20 $ ./getaddrinfo host-204-15-78-240-by.yhsrv.com Output: host host-204-15-78-240-by.yhsrv.com not found: Address family for host= name not supported=20 Additional Information: The name host-204-15-78-240-by.yhsrv.com does exist, but it has no A record. It does have an HINFO recored, and therefore the DNS response is "NOERROR, ANCOUNT zero". This should result in an EAI_NODATA result from getaddrinfo(), not EAI_SYSTEM. With FreeBSD 13.1-RC4 and earler the result is as expected: host host-204-15-78-240-by.yhsrv.com not found: Name does not resolve --=20 You are receiving this mail because: You are the assignee for the bug.=