<div dir="ltr">On Tue, Jul 2, 2013 at 1:59 PM, Kurt Roeckx <span dir="ltr"><<a href="mailto:kurt@roeckx.be" target="_blank">kurt@roeckx.be</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

Do you know NXDOMAIN returns?  I think it returns just the same?<br></blockquote><div><br></div><div><br></div><div>I don't immediately see how getaddrinfo() alone can be used to tell</div><div>whether or not an actual NXDOMAIN was received. A test with a small</div>

<div>C program reveals that retval -11 errno 2 is returned both in the</div><div>NXDOMAIN case and in the case where no nameservers could be found.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<br>
So ntpd should just keep trying to resolv invalid hostnames?<br></blockquote><div><br></div><div><br></div><div>That may seem like a waste of resources, but</div><div><br></div><div>* Computers are mobile these days and DNS also changes from the</div>

<div>perspective of those computers. A laptop may connect sometimes</div><div>to a LAN where the domain name ntp.somecorp.private resolves to</div><div>the address of a time server.  On other LANs this name does not exist.</div>

<div><br></div><div>* If the retry period is on the order of seconds then the resources</div><div>used aren't very significant.</div><div><br></div><div>* If the name of the time server never resolves and this is a problem</div>

<div>then it's the admin's fault for failing to configure ntpd properly.</div><div><br></div><div>I suppose the question really is, when should the admin be</div><div>notified that there is a problem?  Good question.  Is there something</div>

<div>wrong with ntpd just logging resolution failures and leaving it at that?</div><div><br></div><div>Anyway, you be the judge.</div><div><br></div><div>Best wishes,</div><div>-- </div><div>Thomas</div></div></div></div>