web-dev-qa-db-ja.com

ntpdateが「名前またはサービスが不明」に失敗する

私はNAS Linuxベース(Linuxバージョン2.6.32.11-svn70860)であり、ntpを使用して時間を設定することはできません。以前のSysAdminは長い間使用されていなかったので、この問題が発生し始めたばかりなのか、それとも何年もこのようになっているのかはわかりません。メーカーにも連絡していますが、技術サポートにあまり自信がありません。そのため、私はここにいます。

/var/log/daemon.logに、次のような行が表示されます。

Jan 13 09:28:37 ntpdate[16529]: can't find Host pool.ntp.org
Jan 13 09:28:37 ntpdate[16529]: can't find Host time.windows.com
Jan 13 09:28:37 ntpdate[16529]: can't find Host pool.ntp.org
Jan 13 09:28:37 ntpdate[16529]: no servers can be used, exiting

それで、ntpdateの調査を始めました。実行したら

ntpdate pool.ntp.org

それは反応する

Error : Name or service not known
16 Jan 09:16:38 ntpdate[22019]: can't find Host pool.ntp.org
16 Jan 09:16:38 ntpdate[22019]: no servers can be used, exiting

しかし、私が実行した場合

ping pool.ntp.org

応答します

PING pool.ntp.org (207.32.191.59) 56(84) bytes of data.
64 bytes from 207.32.191.59: icmp_seq=1 ttl=56 time=97.1 ms
64 bytes from 207.32.191.59: icmp_seq=2 ttl=56 time=97.0 ms
64 bytes from 207.32.191.59: icmp_seq=3 ttl=56 time=97.4 ms

インターネット接続、IP構成、DNSなどはすべて問題ないと思います。

ここからどこへ行くの?

更新1

nslookup pool.ntp.org

戻り値

;; Got recursion not available from A.B.C.D, trying next server
Server:     205.171.2.65
Address:    205.171.2.65#53
Non-authoritative answer:
Name:   pool.ntp.org
Address: 209.114.111.1
Name:   pool.ntp.org
Address: 173.242.114.154
Name:   pool.ntp.org
Address: 204.235.61.9
Name:   pool.ntp.org
Address: 64.6.144.6

A.B.C.Dは社内のIPアドレスですが、なぜ表示されるのかわかりません。

更新2

Digを支持してnslookupが非推奨になっていることを読んだので、試してみました。

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

ここで、A.B.C.Dは同じ内部ネームサーバーです。

2
Betty Crokker

解決策:DNSサーバーの担当者は再帰を有効にする必要がありました。

1
Betty Crokker