chronyd cannot resolve NTP server's host name
Issue
- chronyd cannot resolve the NTP servers' hostnames, and it cannot synchronize with the NTP servers.
server clock1.example.com iburst
server time.example.com iburst
server ntpserv.example.com iburst
- If I replace the host names with IP addresses, it works.
- Commands like dig and nslookup can resolve the host names.
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- chrony
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.