[Bug 548885] Re: ntp host name not found error
Barry Fishman
barry_fishman at acm.org
Sat Mar 27 19:19:08 GMT 2010
C de-Avillez <hggdh2 at gmail.com> writes:
> Thank you for opening this bug and helping make Ubuntu better. If I
> understand you correctly, this is not a NTP problem -- you seem to be
> having an issue with name resolution (DNS), not NTP.
>
> Please check your DNS setup.
>
> ** Changed in: ntp (Ubuntu)
> Importance: Undecided => Low
>
> ** Changed in: ntp (Ubuntu)
> Status: New => Incomplete
DNS seems to work with everything else I've tried. Firefox,
chromium-browser, dig, gethostip, emacs/gnus, even ntpdate.
If I could find another program that failed I would use that for
testing.
With ntpd stopped:
$ ntpdate ntp.ubuntu.com
27 Mar 14:16:46 ntpdate[22200]: adjust time server 91.189.94.4 offset 0.000613 sec
$ ntpdate 0.pool.ntp.org
27 Mar 14:16:59 ntpdate[22201]: adjust time server 69.94.105.81 offset -0.000226 sec
$ ntpdate 1.pool.ntp.org
27 Mar 14:17:06 ntpdate[22206]: adjust time server 4.79.132.217 offset -0.001346 sec
$ ntpdate 2.pool.ntp.org
27 Mar 14:17:12 ntpdate[22207]: adjust time server 208.53.158.34 offset 0.009339 sec
$ ntpdate pool.ntp.org
27 Mar 14:17:20 ntpdate[22208]: adjust time server 72.167.54.201 offset 0.006475 sec
With ntpd started:
$ ntpq
ntpq> peers
No association ID's returned
ntpq> host ntp.ubuntu.com
current host set to ntp.ubuntu.com
ntpq> peers
ntp.ubuntu.com: timed out, nothing received
***Request timed out
ntpq> host 0.pool.ntp.org
current host set to 0.pool.ntp.org
ntpq> peers
remote refid st t when poll reach delay offset jitter
==============================================================================
*clock.fmt.he.ne .PPS. 1 u 226 1024 377 0.282 0.138 0.125
+clock.sjc.he.ne .CDMA. 1 u 572 1024 377 1.793 0.117 0.878
+clepsydra.dec.c .GPS. 1 u 246 1024 377 0.998 0.106 0.331
-nist1.symmetric .ACTS. 1 u 207 1024 377 5.771 2.650 0.198
-time-A.timefreq .ACTS. 1 u 557 1024 377 43.445 -2.132 0.232
-clock.xmission. .GPS. 1 u 227 1024 377 18.184 -0.026 0.003
ntpq> host 1.pool.ntp.org
current host set to 1.pool.ntp.org
ntpq> peers
remote refid st t when poll reach delay offset jitter
==============================================================================
ntp1.csl.tjhsst 192.5.41.40 2 u 318 1024 377 0.170 -0.586 1.770
*ntp0.usno.navy. .USNO. 1 u 363 1024 377 20.175 -2.152 0.252
+ntp.alaska.edu .GPS. 1 u 283 1024 377 123.193 2.198 0.957
+clock.isc.org .GPS. 1 u 368 1024 377 72.917 0.836 0.592
18.18.1.95 .STEP. 16 u - 1024 0 0.000 0.000 0.000
LOCAL(1) .LOCL. 10 l 64 64 377 0.000 0.000 0.001
ntpq> host 2.pool.ntp.org
current host set to 2.pool.ntp.org
ntpq> peers
2.pool.ntp.org: timed out, nothing received
***Request timed out
ntpq> host pool.ntp.org
current host set to pool.ntp.org
ntpq> peers
remote refid st t when poll reach delay offset jitter
==============================================================================
*clock.fmt.he.ne .PPS. 1 u 343 1024 377 0.282 0.138 0.125
+clock.sjc.he.ne .CDMA. 1 u 689 1024 377 1.793 0.117 0.878
+clepsydra.dec.c .GPS. 1 u 363 1024 377 0.998 0.106 0.331
-nist1.symmetric .ACTS. 1 u 324 1024 377 5.771 2.650 0.198
-time-A.timefreq .ACTS. 1 u 674 1024 377 43.445 -2.132 0.232
-clock.xmission. .GPS. 1 u 343 1024 377 18.184 -0.026 0.003
ntpq> quit
I tries a strace but did not see anyting I could understand.
I tried building the upstream ntp-4.2.6 and installed it under
"/home/util64/ntp-4.2.6/". When I ran it from the command line (as
root) or as a soft link from /usr/sbin/ it seemed to work (the strace
showed periodic connection to the right servers). However if I moved
lucid's ntpd out of the way replacing /usr/sbin/ntpd with the new
version, and restarted the ntp service, I got the a similar problem; the
syslog indicting first a "Deferring DNS" for each host and then the
usual "host name not found" messages.
The working command was:
$ cd /home/util64/ntp-4.2.6/bin
$ strace ./ntpd -n -c /etc/ntp.conf -g -u 123:130 2>&1 | tee /tmp/new.trace
--
Barry Fishman
** Attachment added: "NTP.trace"
http://launchpadlibrarian.net/42195540/NTP.trace
--
ntp host name not found error
https://bugs.launchpad.net/bugs/548885
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to ntp in ubuntu.
More information about the Ubuntu-server-bugs
mailing list