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=-1.3 required=5.0 tests=MAILING_LIST_MULTI, PDS_OTHER_BAD_TLD,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29063 invoked from network); 19 Jul 2021 21:08:57 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 19 Jul 2021 21:08:57 -0000 Received: (qmail 26575 invoked by uid 550); 19 Jul 2021 21:08:56 -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 26553 invoked from network); 19 Jul 2021 21:08:55 -0000 Date: Mon, 19 Jul 2021 17:08:42 -0400 From: Rich Felker To: Florian Weimer Cc: Yuri Kanivetsky , musl@lists.openwall.com Message-ID: <20210719210842.GJ13220@brightrain.aerifal.cx> References: <878s22xwt4.fsf@oldenburg.str.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878s22xwt4.fsf@oldenburg.str.redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [musl] 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