Bug#971523: ntpsec-ntpdate: ntpdate fail if DNS name for server resolve to IPv6
62 views
Skip to first unread message
Petter Reinholdtsen
unread,
Oct 1, 2020, 4:30:03 AM10/1/20
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
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:
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
Petter Reinholdtsen
unread,
Oct 1, 2020, 5:20:03 AM10/1/20
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
ntpdig: socket error on transmission: [Errno 101] Network is unreachable
> I get a different error, which might be related, with:
> ntpdig -d 2.debian.pool.ntp.org >
> That seems to timeout (the default being 5 seconds) and then return:
> ntpdig: no eligible servers
>
> How does that behave for you?
This bug probably should have been marked fixed already once the
upstream change to make them non-fatal was uploaded to Debian. But given
I'm submitting another patch, I'll leave it open.