chronyd cannot resolve NTP server's host name

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content