ntpdate - nameserver cannot be used, temporary failure in name resolution

Asked by posterlion

This log is for UBUNTU 10.04 LTS (32bit server)

ntpdate fails during the boot process. It is not difficult to see why as ntpdate runs before named is started. Why is that?

Here is a copy of my syslog. Thanks in advance! :

Aug 16 11:37:27 classroom ntpdate[707]: name server cannot be used, reason: Temp
orary failure in name resolution
Aug 16 11:37:27 classroom kernel: [ 6.845432] type=1505 audit(1281976647.771:
5): operation="profile_replace" pid=724 name="/sbin/dhclient3"
Aug 16 11:37:27 classroom kernel: [ 6.845475] type=1505 audit(1281976647.771:
6): operation="profile_replace" pid=724 name="/usr/lib/NetworkManager/nm-dhcp-c
lient.action"
Aug 16 11:37:27 classroom kernel: [ 6.845517] type=1505 audit(1281976647.771:
7): operation="profile_replace" pid=724 name="/usr/lib/connman/scripts/dhclient
-script"
Aug 16 11:37:27 classroom kernel: [ 6.846002] type=1505 audit(1281976647.771:
8): operation="profile_load" pid=725 name="/usr/sbin/named"
Aug 16 11:37:27 classroom kernel: [ 6.848580] type=1505 audit(1281976647.775:
9): operation="profile_load" pid=726 name="/usr/sbin/tcpdump"
Aug 16 11:37:27 classroom cron[755]: (CRON) INFO (pidfile fd = 3)
Aug 16 11:37:27 classroom init: apport pre-start process (748) terminated with s
tatus 1
Aug 16 11:37:27 classroom cron[769]: (CRON) STARTUP (fork ok)
Aug 16 11:37:27 classroom init: apport post-stop process (764) terminated with s
tatus 1
Aug 16 11:37:27 classroom cron[769]: (CRON) INFO (Running @reboot jobs)
Aug 16 11:37:27 classroom named[825]: starting BIND 9.7.0-P1 -u bind
Aug 16 11:37:27 classroom named[825]: built with '--prefix=/usr' '--mandir=/usr/

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ntp Edit question
Assignee:
No assignee Edit question
Solved by:
posterlion
Solved:
Last query:
Last reply:
Revision history for this message
posterlion (posterlion) said :
#1

I fixed this by adding my ntp server to my hosts file. I never like to hard-coding ip addresses, but there is a place and a time for hard-coding and this is one of them.

poster out!