SUSE Support

Here When You Need Us

NTP server does not resolve host names

This document (7016873) is provided subject to the disclaimer at the end of this document.


SUSE Linux Enterprise Server 11 Service Pack 4 (SLES 11 SP4)
SUSE Linux Enterprise Server 12 SP1
ntp 4.2.8


  • The ntp server ntpd does not synchronize with its peers anymore and the peers are specified by their host name in /etc/ntp.conf
  • The output of ntpq --peers lists IP numbers of the remote servers instead of their host names

Name resolution for the affected hosts works otherwise.


Configure ntpd to not run in chroot mode by setting
in /etc/sysconfig/ntp and restart the service with
SLES 11 --> rcntp restart
SLES 12 --> systemctl restart ntpd


Newer versions of ntpd are using getaddrinfo() to properly support IPv6 instead of the deprecated gethostbyname() and may require additional files in the chroot environment. Due to the modular nature of the libnss_* mechanism, it is not possible to determine which files have to be copied over in the general case.

Additional Information

Due to the architecture of ntpd, it does not start reliably in chroot mode anyway. (It often does due to a race condition, though.) Furthermore, the daemon drops all capabilities except for the one needed to open sockets on reserved ports, so chroot isn't required. Apparmor can be used to further limit the process in what it can do if political requirements mandate this.
Reference Documentation:
ntp documentation Section
SLES12 SP1 - release notes


This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7016873
  • Creation Date: 30-Sep-2015
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.