Step 6: Configure the /etc/ntp.conf file to add your NTP
server as the new time server
Now we want our client machine to use our own NTP host
server to be used as
the default time server. For this, we need to edit the /etc/ntp.conf file on the
client machine.
Run the following command as sudo in order to open the file in the Nano editor:
$ sudo nano /etc/ntp.conf
Then, add the following line in the file, where NTP-server-host is the hostname
you specified for your NTP server:
server NTP-server-host prefer iburst
This is how my file looks like after I have specified the time server:
Step 7: Restart the NTP server
In order for the above changes to take effect, you need to restart the NTP
service. Run the following command as sudo in order to do so:
$ sudo service ntp restart