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:
- Check the time on both primary and secondary DNS servers using the
date
command.date
- If the time is incorrect on either server, correct it using the
ntpdate
command. If thentpdate
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. - Restart the BIND service on both primary and secondary DNS servers to apply the changes.
$ sudo service bind9 restart
- 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.