Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ntp-client "Name or service not known"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Lupin_the_3rd
Apprentice
Apprentice


Joined: 03 Apr 2005
Posts: 168

PostPosted: Sat Aug 18, 2007 7:19 pm    Post subject: ntp-client "Name or service not known" Reply with quote

Just noticed that my ntp client is failing during bootup. Fails in the same way if you try to run it manually after system is up:

# /etc/init.d/ntp-client restart
* Setting clock via the NTP client 'ntpdate' ...
Error : Name or service not known
* Failed to set clock [ !! ]


Anyone come across this before? TIA!
_________________
Compaq XP1000 Alpha EV67 667Mhz w/ 2GB ECC
32bit PCI: ATI Radeon 9100 (DRI works!)
32bit PCI: Generic Firewire 400 card
64bit PCI: BCM5703 Gig-E (Compaq NC7771)
64bit PCI: Sil3124 SATA w/ mdadm RAID1 (pair of WD VelociRaptors)
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sat Aug 18, 2007 7:48 pm    Post subject: Reply with quote

Google for "Name or service not known" - it means the DNS lookup failed.

Check your entries in /etc/conf.d/ntp-client
Back to top
View user's profile Send private message
Mambo
n00b
n00b


Joined: 18 Oct 2003
Posts: 12

PostPosted: Sun Aug 19, 2007 5:50 am    Post subject: Reply with quote

Problem is the "pool.ntp.org" which is in there doesn't resolve

Just change it to whatever ntp server you wish to sync from.
Back to top
View user's profile Send private message
genterminl
Guru
Guru


Joined: 12 Feb 2005
Posts: 527
Location: Connecticut, USA

PostPosted: Fri Oct 19, 2007 12:20 pm    Post subject: Reply with quote

pool.ntp.org resolves just fine for me. Is it possible that ntp-client is trying to start before net.eth0 is up and running? Can you manually start net-client once bootup is complete?
Back to top
View user's profile Send private message
RicardoRossetto
n00b
n00b


Joined: 17 Dec 2007
Posts: 1

PostPosted: Mon Dec 17, 2007 2:06 pm    Post subject: Reply with quote

Quote:
# /etc/init.d/ntp-client restart
* Setting clock via the NTP client 'ntpdate' ...
Error : Name or service not known
* Failed to set clock [ !! ]

I've just had this problem, reproducible after startup.
Yesterday it was all right, no updates...But ping still worked while ntpdate didn't: :?:
Code:
PING 0.pool.ntp.org (209.67.219.106) 56(84) bytes of data.
64 bytes from lashiir.sapros.com (209.67.219.106): icmp_seq=1 ttl=46 time=202 ms
64 bytes from lashiir.sapros.com (209.67.219.106): icmp_seq=2 ttl=46 time=237 ms
64 bytes from lashiir.sapros.com (209.67.219.106): icmp_seq=3 ttl=46 time=194 ms
64 bytes from lashiir.sapros.com (209.67.219.106): icmp_seq=4 ttl=46 time=191 ms

--- 0.pool.ntp.org ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 191.179/206.648/237.786/18.449 ms


A few hours latter, all was back in place...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum