From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17756 invoked from network); 19 Jul 2021 19:29:54 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 19 Jul 2021 19:29:54 -0000 Received: (qmail 12051 invoked by uid 550); 19 Jul 2021 19:29:50 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 12033 invoked from network); 19 Jul 2021 19:29:50 -0000 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) From: Shiz In-Reply-To: Date: Mon, 19 Jul 2021 21:29:39 +0200 Cc: yuri.kanivetsky@gmail.com Content-Transfer-Encoding: quoted-printable Message-Id: References: <878s22xwt4.fsf@oldenburg.str.redhat.com> To: musl@lists.openwall.com X-Mailer: Apple Mail (2.3608.120.23.2.4) Subject: Re: [musl] getaddrinfo() fails for domains with no AAAA records (regression?) > On 19 Jul 3 Reiwa, at 20:51, Yuri Kanivetsky = wrote: >=20 > So you're saying that that is the registrar's fault (which also > provides the name servers)? Can you possibly tell how this can be > fixed? Other than by giving up on wildcard dns records? Your registrar should return empty data responses if the domain exists, but no records of the requested type are available for it. This is a distinct response from the NXDOMAIN error response, which indicates the domain doesn=E2=80=99t exist at all. This is specified by RFC1035[0] = and clarified further by RFC8020[1]. Appropriately, musl aborts the query if it gets such a response from the = server[2]. The fact that it returns NXDOMAIN for AAAA-type queries if A-type record = do in fact exist would point to a bug in your registrar=E2=80=99s DNS = implementation to me. - Shiz [0]: https://datatracker.ietf.org/doc/html/rfc1035 =C2=A74.1.1 [1]: https://datatracker.ietf.org/doc/html/rfc8020 [2]: = https://git.musl-libc.org/cgit/musl/tree/src/network/res_msend.c?id=3D6a20= 9f14ff7273d9429e5153c5b6b1990cb508e3#n149 (3 means NXDOMAIN)=