I have a Linux server that gets a time offset for some strange reason. I set up cron job to run and update the time using the following command:
The problem is the command would not run because I have a firewall (iptables).
I have always used IP to allow traffic in my network:
iptables -A INPUT -p tcp -m tcp -i eth0 -s 126.96.36.199 --dport 5060 -j ACCEPT
I would like to know how to do it using a domain name in this case would be
pool.ntp.org, or maybe someone could tell me a better way to keep the clocks in sync.