Log in to ask questions, share your expertise, or stay connected to content you value. Don’t have a login? Learn how to become a member.
I came across this project and I would like to use them as my NTP servers.
Now, this project consists out of 150+ NTP server so it would be list too long to use in my configuration in my opinion.
How would I apply these 4 dynamic hostnames to serve as my NTP servers?
Can't seem to find a wiki on how to do this.
why not using just pool.ntp.org as an NTP server inside the configuration? This address includes all of the other NTP servers, as far as I understand.
simply configure 0...4.<your-country-code>.pool.ntp.org NTP servers and you'll be all set. No need to try and reach all servers 😉
P.S. Before going country specific you'd want to check "You can also use the continental zones (For example europe, north-america, oceania or asia.pool.ntp.org), and a country zone (like ch.pool.ntp.org in Switzerland) - for all these zones, you can again use the 0, 1 or 2 prefixes, like 0.ch.pool.ntp.org. Note, however, that the country zone might not exist for your country, or might contain only one or two timeservers.".
If I configure pool.ntp.org or any of the other NL NTP servers then it directly translates to an IP address.
This means I can go on for about 150 times setting 0--3.pool.ntp.org before having reached all current active NTP servers.
Or am I wrong?
Or would I just configure them 4 once and be set for life?
as https://www.ntppool.org/zone/nl says:
To use this specific pool zone, add the following to your ntp.conf file:
You don't want to try and sync with 150 servers in parallel, right?!!
If you want to use just NL NTP servers, just configure these commands on your Junos device:
set system ntp server 0.nl.pool.ntp.org
set system ntp server 1.nl.pool.ntp.org
set system ntp server 2.nl.pool.ntp.org
set system ntp server 3.nl.pool.ntp.org
You do not have to configure anything more.
For anyone else checking, it seems Junos only allows you to hard-code IP addresses as NTP servers.Per Juniper documentation "You must specify an address, not a hostname" When you try ntp.org, it resolves the URL and hard-codes one of the returned IP addresses into the config.
If I enter:
set system ntp server 0.us.pool.ntp.org
set system ntp server 1.us.pool.ntp.org
set system ntp server 2.us.pool.ntp.org
set system ntp server 3.us.pool.ntp.org
This is what gets inserted into the config:
set system ntp server 188.8.131.52
set system ntp server 184.108.40.206
set system ntp server 220.127.116.11
set system ntp server 18.104.22.168
Which worries me a bit because NTP.org member servers change frequently. From ntp.org's own stats, 2% of member servers 2 months ago are no longer active. Hopefully one of the four NTP servers I pulled at random will stay active for the lifetime of these switches.