misc/74140: ntpdate does not try all IPs for a host
antiduh at csh.rit.edu
Fri Nov 19 16:40:28 PST 2004
>Synopsis: ntpdate does not try all IPs for a host
>Arrival-Date: Sat Nov 20 00:40:27 GMT 2004
>Originator: Kevin Thompson
FreeBSD corrugated.csh.rit.edu 5.3-STABLE FreeBSD 5.3-STABLE #3: Sat Nov 6 18:39:15 EST 2004 antiduh at corrugated.csh.rit.edu:/usr/obj/usr/src/sys/CORRUGATED_5_3 i386
When attempting to contact the specified server to adjust time, ntpdate seems to only try to connect to the first IP it comes up with for a given host.
I have a server, mcp.csh.rit.edu, that serves ntp for our services. In dns, we have a old IPv6 address for the machine registered, but the machine does not respond to this address. The machine, of course, responds on the IPv4 address.
When attempting to use 'ntpdate mcp.csh.rit.edu', the command fails because ntpdate cannot contact mcp's IPv6 address. 'ntpdate 22.214.171.124' works flawlessly.
Create a multiple dns entries for a server, many of which the machine will not respond for, run ntpd on that machine and try to sync another machine with that server using 'ntpdate host' and then 'ntpdate <ipv4 address>'.
Attempt to contact all known IP addresses listed for the machine.
More information about the freebsd-bugs