ntpdate 无法接收数据

ntpdate 无法接收数据

我遇到一个问题,在我的服务器上运行 ntpdate 没有返回任何数据,因此出现以下错误:

[root@server etc]# ntpdate -d -u -v time.nist.gov 
12 Apr 01:10:09 ntpdate[32072]: ntpdate [email protected] Fri Nov 18 13:21:21 UTC 2011 (1)
Looking for host time.nist.gov and service ntp
host found : 24-56-178-141.co.warpdriveonline.com
transmit(24.56.178.141)
transmit(24.56.178.141)
transmit(24.56.178.141)
transmit(24.56.178.141)
transmit(24.56.178.141)
24.56.178.141: Server dropped: no data
server 24.56.178.141, port 123
stratum 0, precision 0, leap 00, trust 000
refid [24.56.178.141], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time:    00000000.00000000  Thu, Feb  7 2036 14:28:16.000
originate timestamp: 00000000.00000000  Thu, Feb  7 2036 14:28:16.000
transmit timestamp:  d3303975.1311947c  Thu, Apr 12 2012  1:10:13.074
filter delay:  0.00000  0.00000  0.00000  0.00000 
         0.00000  0.00000  0.00000  0.00000 
filter offset: 0.000000 0.000000 0.000000 0.000000
         0.000000 0.000000 0.000000 0.000000
delay 0.00000, dispersion 64.00000
offset 0.000000

12 Apr 01:10:14 ntpdate[32072]: no server suitable for synchronization found

我尝试在线谷歌搜索“未找到适合同步的服务器”错误,并尝试禁用防火墙(运行 iptables -L 没有返回任何规则)。我还向我的 DC 确认没有阻止 ntp(端口 123)的规则。

有人知道我该如何解决这个问题吗?

顺便说一下,在另一个 DC 中的工作服务器上的输出应该是这样的:

11 Apr 19:01:24 ntpdate[725]: ntpdate [email protected] Fri Nov 18 13:21:17 UTC 2011 (1)
Looking for host 184.105.192.247 and service ntp
host found : 247.conarusp.net
transmit(184.105.192.247)
receive(184.105.192.247)
transmit(184.105.192.247)
receive(184.105.192.247)
transmit(184.105.192.247)
receive(184.105.192.247)
transmit(184.105.192.247)
receive(184.105.192.247)
transmit(184.105.192.247)
receive(184.105.192.247)
transmit(184.105.192.247)
server 184.105.192.247, port 123
stratum 2, precision -20, leap 00, trust 000
refid [184.105.192.247], delay 0.18044, dispersion 0.00006
transmitted 4, in filter 5
reference time:    d330364e.e956694f  Wed, Apr 11 2012 18:56:46.911
originate timestamp: d3303765.8702d025  Wed, Apr 11 2012 19:01:25.527
transmit timestamp:  d3303765.73b213e3  Wed, Apr 11 2012 19:01:25.451
filter delay:  0.18069  0.18044  0.18045  0.18048 
         0.18048  0.00000  0.00000  0.00000 
filter offset: -0.00195 -0.00197 -0.00211 -0.00202
         -0.00202 0.000000 0.000000 0.000000
delay 0.18044, dispersion 0.00006
offset -0.001970

答案1

服务器24.56.178.141拒绝所有未经身份验证的请求 - 它不会响应正常查询。

time.nist.gov我建议不要使用 DNS 名称,而是从 NIST 的服务器列表

相关内容