[Bug 262391] ntp.conf contains wrong information regarding leapfile
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262391] ntp.conf contains wrong information regarding leapfile"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262391] ntp.conf contains wrong information regarding leapfile"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262391] ntp.conf contains wrong information regarding leapfile"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262391] ntp.conf contains wrong information regarding leapfile"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 06 Mar 2022 23:13:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262391
Bug ID: 262391
Summary: ntp.conf contains wrong information regarding leapfile
Product: Base System
Version: 13.0-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: misc
Assignee: bugs@FreeBSD.org
Reporter: dclarke@blastwave.org
The default ntp.conf file has a comment on the bottom that says :
# See http://support.ntp.org/bin/view/Support/ConfiguringNTP#Section_6.14.
# for documentation regarding leapfile. Updates to the file can be obtained
# from ftp://time.nist.gov/pub/ or ftp://tycho.usno.navy.mil/pub/ntp/.
# Use either leapfile in /etc/ntp or periodically updated leapfile in /var/db.
#leapfile "/etc/ntp/leap-seconds"
However, as far as I can tell, neither of those ftp sites exist. The
dns records for either do not exist. However one may attain the recent
leap seconds file from :
https://www.ietf.org/timezones/data/leap-seconds.list
See bottom of :
https://support.ntp.org/bin/view/Support/ConfiguringNTP#Section_6.14.
A trivial fetch "just works" :
europa#
europa# uname -apKU
FreeBSD europa 13.0-RELEASE-p7 FreeBSD 13.0-RELEASE-p7 #0: Mon Jan 31 18:24:03
UTC 2022
root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
amd64 amd64 1300139 1300139
europa#
europa# fetch https://www.ietf.org/timezones/data/leap-seconds.list
fetch: https://www.ietf.org/timezones/data/leap-seconds.list: size of remote
file is not known
leap-seconds.list 10 kB 3151 kBps 00s
europa#
europa# ls -l leap-seconds.list
-rw-r--r-- 1 root wheel 10659 Oct 22 02:20 leap-seconds.list
europa#
europa# file leap-seconds.list
leap-seconds.list: ASCII text
europa#
europa# wc -l leap-seconds.list
255 leap-seconds.list
europa#
europa# head leap-seconds.list
#
# In the following text, the symbol '#' introduces
# a comment, which continues from that symbol until
# the end of the line. A plain comment line has a
# whitespace character following the comment indicator.
# There are also special comment lines defined below.
# A special comment will always have a non-whitespace
# character in column 2.
#
# A blank line should be ignored.
europa#
It may be reasonable to update the default ntp.conf file as well as
fetch the leap seconds file during installation if the ntp option
has been selected.
Dennis Clarke
--
You are receiving this mail because:
You are the assignee for the bug.