PackagE: ntpsec-ntpdate
Version: 1.1.3+dfsg1-2+deb10u1
Severity: important

I ran into this using Maemo Leste, which uses Buster packages, but the
problem seem to exist also in Debian.  The problem is simply that when
ntpdate from ntpsec-ntpdate is given a list of DNS names where some of
them resolve to IPv6 addresses, on a machine where IPv6 is not working,
ntpdate will fail completely even if several of the hosts behind the DNS
names are working fine.  It can look like this:

  root@devuan-n900:~# /usr/sbin/ntpdate -b  0.debian.pool.ntp.org 
1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org         
  ntpdig: socket error on transmission: [Errno 101] Network is unreachable
  root@devuan-n900:~# route -n

I've verified using strace that one of the IPv6 addresses causes the
problem.  When trying the same with the ntpdate version in the ntpdate
1.1.3+dfsg1-2+deb10u1 package, the same command line work.

I found <URL: https://bugs.debian.org/293793 > with a patch for ntpdate
to solve what seem to be this exact problem, applied 15 years ago.
Could it be that this approach will solve the issue also for
ntpsec-ntpdate?

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to