From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 309B33858284; Tue, 4 Jul 2023 16:14:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 309B33858284 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1688487271; bh=9YJ97OxJ7SqQxIw9BBInviGTmrT730o9/HXwQcEdMqM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=f9saD448GJfuWmKBu15n83m647fOkkTMGTdmSIQZS6GGI+vSSLdA3HwZwAIo2Pm5W +32FCGWdGhRMaLPNPZfPDUeZazgdCIBaC8Ivhk0NE8/MaIraU2VSG3ohkD+diNDk7Q y00rXbQrcuM8w/06uyI2G3bAdaEePfM9z5RfC18M= From: "pemensik at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug network/30544] [RFE] Make getaddrinfo() with hints ai_flags==AF_UNSPEC query only AF present on the system Date: Tue, 04 Jul 2023 16:14:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: network X-Bugzilla-Version: 2.39 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pemensik at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30544 --- Comment #2 from Petr Men=C5=A1=C3=ADk --- Created test build with modified Fedora Rawhide branch. On first glance, it behaves correctly. Works: - getent ahosts fedoraproject.org - getent ahostsv4 fedoraproject.org - getent ahostsv6 fedoraproject.org As expected it offers only single address with "options edns0 ipv4" to ahos= ts. But what were unexpected is reaction to ping. # grep options /etc/resolv.conf=20 options edns0 ipv4 # ping -6 fedoraproject.org ping: fedoraproject.org: Address family for hostname not supported # after modification # grep options /etc/resolv.conf=20 options edns0 # ping -c 1 -6 fedoraproject.org PING fedoraproject.org(2620:52:3:1:dead:beef:cafe:fed7 (2620:52:3:1:dead:beef:cafe:fed7)) 56 data bytes # ping -c 1 -4 fedoraproject.org PING (38.145.60.21) 56(84) bytes of data. It seems some unwanted remains of no-aaaa option are present. A bit differe= nt approach should be chosed to avoid that. But close enough. Question is how tests should be modified. I am not very confident in implementing that. This requires responses from dns, not sure how to fake t= hem properly. --=20 You are receiving this mail because: You are on the CC list for the bug.=