Servidor_de_comunicacions_Institut_les_Planes
sudo apt-get install ntp
# You do need to talk to an NTP server or two (or three). server ntp.ubuntu.com server pool.ntp.org
sudo /etc/init.d/ntp restart
sudo /etc/init.d/ntp start (iniciar) sudo /etc/init.d/ntp stop (parar)
sudo ntpq -pn
remote refid st t when poll reach delay offset jitter ============================================================================== 91.189.94.4 .INIT. 16 u - 64 0 0.000 0.000 0.000 158.227.98.15 .INIT. 16 u - 64 0 0.000 0.000 0.000
# nslookup 91.189.94.4
Server: 192.168.202.1 Address: 192.168.202.1#53 Non-authoritative answer: 4.94.189.91.in-addr.arpa name = europium.canonical.com. Authoritative answers can be found from: 94.189.91.in-addr.arpa nameserver = ns1.canonical.com. 94.189.91.in-addr.arpa nameserver = ns2.canonical.com. 94.189.91.in-addr.arpa nameserver = ns3.canonical.com.
# sudo ntpdate ntp.ubuntu.com 5 May 17:08:14 ntpdate[1673]: the NTP socket is in use, exiting
$ date
Time.is