I've got a NAS that is Linux-based (Linux version 18.104.22.168-svn70860) and it is not able to set its time using ntp. The previous SysAdmin is long gone so I have no idea whether this problem just started happening, or whether it's been this way for years. I'm also contacting the manufacturer, but don't have a lot of confidence in their tech support - which is why I'm here!
In /var/log/daemon.log I see lines like this:
Jan 13 09:28:37 ntpdate: can't find host pool.ntp.org Jan 13 09:28:37 ntpdate: can't find host time.windows.com Jan 13 09:28:37 ntpdate: can't find host pool.ntp.org Jan 13 09:28:37 ntpdate: no servers can be used, exiting
So I started investigating ntpdate. If I execute
Error : Name or service not known 16 Jan 09:16:38 ntpdate: can't find host pool.ntp.org 16 Jan 09:16:38 ntpdate: no servers can be used, exiting
but if I execute
PING pool.ntp.org (22.214.171.124) 56(84) bytes of data. 64 bytes from 126.96.36.199: icmp_seq=1 ttl=56 time=97.1 ms 64 bytes from 188.8.131.52: icmp_seq=2 ttl=56 time=97.0 ms 64 bytes from 184.108.40.206: icmp_seq=3 ttl=56 time=97.4 ms
which makes me think the Internet connection, IP configuration, DNS, etc. are all fine.
Where do I go from here?
;; Got recursion not available from A.B.C.D, trying next server Server: 220.127.116.11 Address: 18.104.22.168#53 Non-authoritative answer: Name: pool.ntp.org Address: 22.214.171.124 Name: pool.ntp.org Address: 126.96.36.199 Name: pool.ntp.org Address: 188.8.131.52 Name: pool.ntp.org Address: 184.108.40.206
A.B.C.D is an IP address inside our company, not sure why it's showing up.
I read about nslookup being deprecated in favor of dig, so I gave it a try.
dig pool.ntp.org ; <<>> DiG 9.5.1-P3 <<>> pool.ntp.org ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 56646 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;pool.ntp.org. IN A ;; Query time: 50 msec ;; SERVER: A.B.C.D#53(A.B.C.D) ;; WHEN: Thu Jan 16 11:03:40 2014 ;; MSG SIZE rcvd: 30
where A.B.C.D is that same internal name server.