I seek knowledge..
After editing /etc/chrony.conf and adding for example: server time.google.com iburst
systemctl restart chronyd
systemctl status chronyd (active running)
chronyc sources
the source does not appear. How or where do I troubleshoot this example?
What is the output of "chrony sources" in your environment?
➜ host 216.239.35.12
12.35.239.216.in-addr.arpa domain name pointer time4.google.com.
➜ host 216.239.35.4
4.35.239.216.in-addr.arpa domain name pointer time2.google.com.
➜ host 216.239.35.0
0.35.239.216.in-addr.arpa domain name pointer time1.google.com.
➜ host 216.239.35.8
8.35.239.216.in-addr.arpa domain name pointer time3.google.com.
Note that time.google.com resolves to various diffent DNS entries / timeservers:
➜ host time.google.com
time.google.com has address 216.239.35.12
time.google.com has address 216.239.35.4
time.google.com has address 216.239.35.0
time.google.com has address 216.239.35.8
# chronyc sources
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^x time1.google.com 1 6 37 60 -2324ms[-2324ms] +/- 15ms
You don't see "time.google.com", but "time1.google.com" because it's the chosen DNS record at chronyd restart time, but it's otherwise listed.
In this case, you probably should be using "pool time.google.com" instead of "server", anyhow.
What is the output of "chrony sources" in your environment?
➜ host 216.239.35.12
12.35.239.216.in-addr.arpa domain name pointer time4.google.com.
➜ host 216.239.35.4
4.35.239.216.in-addr.arpa domain name pointer time2.google.com.
➜ host 216.239.35.0
0.35.239.216.in-addr.arpa domain name pointer time1.google.com.
➜ host 216.239.35.8
8.35.239.216.in-addr.arpa domain name pointer time3.google.com.
Note that time.google.com resolves to various diffent DNS entries / timeservers:
➜ host time.google.com
time.google.com has address 216.239.35.12
time.google.com has address 216.239.35.4
time.google.com has address 216.239.35.0
time.google.com has address 216.239.35.8
# chronyc sources
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^x time1.google.com 1 6 37 60 -2324ms[-2324ms] +/- 15ms
You don't see "time.google.com", but "time1.google.com" because it's the chosen DNS record at chronyd restart time, but it's otherwise listed.
In this case, you probably should be using "pool time.google.com" instead of "server", anyhow.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.