<div dir="ltr">getaddrinfo() returns -11 with errno 2 (EAI_SYSTEM with errno ENOENT)<div style>both when no nameserver can be reached and when the domain name does not exist. So if you want to behave differently in these two cases you can't do so based solely on the returned status of getaddrinfo(). </div>

<div style><br></div><div style>Hypothesis: ntpd handles -11/2 as meaning NXDOMAIN and treats this as a permanent error whereas -11/2 could also mean that no nameservers could be reached which should not be treated as a permanent error.</div>

<div style><br></div><div style>What I would suggest is that both no-nameservers-are-reachable and NXDOMAIN be treated as non-permanent errors. That a domain name does not now exist does not entail that it never will exist. And then there is no need to distinguish the two cases.</div>

<div style>-- </div><div style>Thomas Hood</div><div style>P.S. I got to this bug report from here: <a href="http://lists.debian.org/debian-devel/2013/06/msg00316.html">http://lists.debian.org/debian-devel/2013/06/msg00316.html</a></div>

</div>