Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210719210842.GJ13220@brightrain.aerifal.cx>
Date: Mon, 19 Jul 2021 17:08:42 -0400
From: Rich Felker <dalias@...c.org>
To: Florian Weimer <fweimer@...hat.com>
Cc: Yuri Kanivetsky <yuri.kanivetsky@...il.com>, musl@...ts.openwall.com
Subject: Re: getaddrinfo() fails for domains with no AAAA records
 (regression?)

On Mon, Jul 19, 2021 at 03:22:47PM +0200, Florian Weimer wrote:
> * Yuri Kanivetsky:
> 
> > $ docker run --rm -itv $PWD:/app alpine:3.14 ./app/a.sh
> > ...
> > + ./a.out p2.x-yuri.site set_ai_family
> > AF_INET: 3.67.126.242
> > + ./a.out p2.x-yuri.site
> > getaddrinfo: Name does not resolve
> 
> p2.x-yuri.site/IN/AAAA queries result in Name Error/NXDOMAIN, so the
> domain is misconfigured.  This error is independent of the record type.

To clarify, NXDOMAIN from DNS means "this name does not exist" in the
sense that "no records at all exist for it". The nameserver should be
returning NODATA (RCODE 0 = Success, with 0 records in the answer)
meaning "this name exists but has 0 records of the requested type".

Rich

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.