BIND: Clocks are Unsynchronized Error and Solution

The “Clocks are Unsynchronized” error occurs when the time on the primary and secondary DNS servers are not synchronized. It can cause issues with zone transfers between the two servers. Here are the steps to resolve the issue:

  1. Check the time on both primary and secondary DNS servers using the date command.
    $ date
  2. If the time is incorrect on either server, correct it using the ntpdate command. If the ntpdate command is not installed, you can install it using the following command:
    $ sudo apt-get install ntpdate

    Run the ntpdate command with the NTP server name or IP address to synchronize the time.

    $ sudo ntpdate ntp.example.com

    Note: Replace ntp.example.com with the name or IP address of your NTP server.

  3. Restart the BIND service on both primary and secondary DNS servers to apply the changes.
    $ sudo service bind9 restart
  4. Verify that the time on both primary and secondary DNS servers is synchronized by repeating step 1. If the time is synchronized, the “Clocks are Unsynchronized” error should be resolved.

Leave a Comment