Bug#916516: systemd: timedatectl mangles IPv6 address of NTP server

Ben Harris bjh21 at bjh21.me.uk
Sat Dec 15 12:22:55 GMT 2018


On Sat, 15 Dec 2018, Michael Biebl wrote:

> Am 15.12.18 um 11:24 schrieb Ben Harris:
>> Package: systemd
>> Version: 239-13
>> Severity: minor
>> Tags: ipv6
>>
>> Dear Maintainer,
>>
>> I have configured timesyncd to use sntp.cam.ac.uk as an NTP server (see
>> configuration below).  That name resolves to 2001:630:212:8::123:20.
>
> It resolves to 131.111.8.28 here.
> Do you get no IPv4 address for sntp.cam.ac.uk?

The name resolves to both an IPv4 and an IPv6 address.  On my system, 
timesyncd prefers the IPv6 address, so I think the presence or otherwise 
of the IPv4 address is irrelevant to the display bug.

Indeed, the same problem occurs if I explicitly specify the IPv6 address:

wraith:~# grep ^NTP= /etc/systemd/timesyncd.conf
NTP=2001:630:212:8::123:20

wraith:~# timedatectl timesync-status | head -1
        Server: ::2001:630:212:8:0:0 (2001:630:212:8::123:20)

-- 
Ben Harris



More information about the Pkg-systemd-maintainers mailing list