BIND: Clocks are Unsynchronized Error and Solution

Q. I’ve configured BIND named TSIG as documented here. It worked for some time, but my /var/log/messages got the errors as follows:

ADVERTISEMENTS

zone example.org/IN: refresh: failure trying master 71.22.11.22#53 (source 0.0.0.0#0): clocks are unsynchronized: 9 Time(s)
zone example.org/IN: refresh: failure trying master 71.22.11.22#53 (source 71.22.11.22#0): clocks are unsynchronized: 9 Time(s)

How do I fix these errors under Debian Linux 64 bit etch server?

A. BIND and many other UNIX / Linux / BSD services depends upon accurate timings. You need to use the Network Time Protocol (NTP), which is a protocol for synchronizing the clocks of computer systems over packet-switched, variable-latency data networks. NTP uses UDP port 123 as its transport layer. It is designed particularly to resist the effects of variable latency by using a jitter buffer. Under Linux / UNIX you can use ntpd or openntpd software implementation to sync clock.

To install ntpd under Debian, enter:
# apt-get update
# apt-get install ntp

You need ntp installed and configured on both master and slave DNS server. Once installed it will automatically sync clock using server specified in /etc/ntp.conf file:
server 0.debian.pool.ntp.org iburst
server 1.debian.pool.ntp.org iburst
server 2.debian.pool.ntp.org iburst
server 3.debian.pool.ntp.org iburst

Once ntpd started bind should work without a problem. Reload named to push pending updates:
# bind reload

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
3 comments… add one
  • mik Feb 2, 2009 @ 16:52

    About the above info you have as i listed below:
    To install ntpd under Debian, enter:
    # apt-get update
    # apt-get install ntp
    My question “where do you enter the data?” in the run command?
    You should mention this as it confuses new guys.

  • mik Feb 2, 2009 @ 16:53

    where do you enter this?
    To install ntpd under Debian, enter:
    # apt-get update
    # apt-get install ntp

    in the run command?

  • 🐧 nixCraft Feb 6, 2009 @ 2:10

    You need to type apt-get commands at a shell prompt. Open terminal and type the commands at bash shell prompt.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.