Carlin Bingham wrote: > On Tue, May 31, 2016 at 01:45:23PM -0400, Ted Unangst wrote: > > Jeremie Courreges-Anglas wrote: > > > ntpd(8) doesn't use getaddrinfo+AI_ADDRCONFIG, which is supposed to skip > > > DNS requests for IPv6 if the machine doesn't have IPv6 addresses > > > configured. > > > > reyk added a comment to that effect, but I don't know why. > > > > /* ntpd MUST NOT use AI_ADDRCONFIG here */ > > error = getaddrinfo(s, NULL, &hints, &res0); > > > > ipv6 might become available after startup: > https://marc.info/?l=openbsd-tech&m=142370671523470&w=2
>> the availability of IPv6 at startup does not necessarily mean that it will not be available later. ntpd is a long-running process that is also used on laptops etc. that move between networks but ntpd keeps on running. This of course leads to a second question. What if, while that long running ntpd is running, the hostname to IP mapping changes? Does it continue probing the wrong IP? If we're talking about timeframes long enough for network connectivity to come and go, that's long enough for IP addresses to come and go as well.

