Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 19 Jul 2021 17:08:42 -0400
From: Rich Felker <>
To: Florian Weimer <>
Cc: Yuri Kanivetsky <>,
Subject: Re: getaddrinfo() fails for domains with no AAAA records

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.out set_ai_family
> > AF_INET:
> > + ./a.out
> > getaddrinfo: Name does not resolve
> 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".


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.