conf/144804: ntpd cannot resolve hostnames at system start
andy wilson
wilson.andrew.j at gmail.com
Tue Mar 16 20:10:01 UTC 2010
>Number: 144804
>Category: conf
>Synopsis: ntpd cannot resolve hostnames at system start
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 16 20:10:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: andy wilson
>Release: 8.0-RELEASE-p2
>Organization:
>Environment:
FreeBSD urania.tx.net 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #1: Wed Mar 10 13:27:38 CST 2010 root at urania.tx.net:/usr/obj/usr/src/sys/URANIA i386
>Description:
Due to network initialization taking longer at system startup on 8.0, ntpd cannot resolve hostnames when it is run by /etc/rc.d/ntpd
It spits out some messages that look something like:
ntpd_initres[1469]: host name not found: time.nist.gov
ntpd_initres[1469]: couldn't resolve `time.nist.gov', giving up on it
ntpd_initres[1469]: host name not found: time-b.nist.gov
ntpd_initres[1469]: couldn't resolve `time-b.nist.gov', giving up on it
ntpd_initres[1469]: host name not found: time-c.timefreq.bldrdoc.gov
ntpd_initres[1469]: couldn't resolve `time-c.timefreq.bldrdoc.gov', giving up on it
In this state ntpd isn't very useful until it is restarted after the network is ready to go.
# ntpq -p
No association ID's returned
# /etc/rc.d/ntpd restart
Stopping ntpd.
Starting ntpd.
# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
time.nist.gov .ACTS. 1 u 3 64 1 40.103 -20.364 0.004
time-b.nist.gov .ACTS. 1 u 2 64 0 0.000 0.000 0.000
time-C.timefreq .ACTS. 1 u 1 64 1 40.769 -20.209 0.004
nist1.symmetric .ACTS. 1 u 1 64 1 67.883 -11.069 0.004
>How-To-Repeat:
Configure time servers by hostname in /etc/ntp.conf, set ntpd_enable="YES" in rc.conf and reboot.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list