On 07/08/2019 08.50, Per Jessen wrote:
James Knott wrote:
Now that you've switched, what does "ntpq -pn" tell you?
I have just enabled and configured ntpd on a test machine, eventually it also prefers IPv4, but that's because it has a higher stratum:
# ntpq -pn remote refid st t when poll reach delay offset jitter ============================================================================== +192.168.2.254 .DCFa. 1 u 37 64 77 0.222 8.747 6.018 *fe80::202:a5ff: 192.168.2.254 2 b 14 16 376 0.115 4.498 2.684
I don't remember why the IPv6 address only is stratum 2, but there is some explanation.
So that I can try, how does ntp know that a server has both IPv4 and 6 on the same network? By setting both addresses on the dns server? I tried adding the IPv6 entry in /etc/hosts, but doesn't work. This machine uses bind since ages, and I don't know how to add IPv6 entries to it... I have being considering changing to dnsmasq instead, but... -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)