LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-09-2009, 06:40 AM   #1
renuaseri
Member
 
Registered: Mar 2009
Posts: 39

Rep: Reputation: 15
Error:- ntpdate: no server suitable for synchronization found


hi all ,
i hava install NAT server by ---sudo aptitude install ntp.
then update this :-sudo gedit /etc/ntp.conf.

my /etc/ntp.conf file lool like ---
-------------------------------------------------------------
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
driftfile /var/lib/ntp/ntp.drift

# Enable this if you want statistics to be logged.
statsdir /var/log/ntpstats/


statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable


# You do need to talk to an NTP server or two (or three).
#server ntp.ubuntu.com
#server ntp0.pipex.net
#server ntp1.pipex.net

server ntp1.sp.se
server ntp2.sp.se

# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
# details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
# might also be helpful.
#
# Note that "restrict" applies to both servers and clients, so a configuration
# that might be intended to block requests from certain clients could also end
# up blocking replies from your own upstream servers.

# By default, exchange time with everybody, but don't allow configuration.
#restrict -4 default kod notrap nomodify nopeer noquery
#restrict -6 default kod notrap nomodify nopeer noquery
restrict ntp1.sp.se mask 255.255.255.255 nomodify notrap noquery
restrict ntp2.sp.se mask 255.255.255.255 nomodify notrap noquery




# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1

# Clients from this (example!) subnet have unlimited access, but only if
# cryptographically authenticated.
#restrict 192.168.123.0 mask 255.255.255.0 notrust
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
#broadcast 192.168.123.255

# If you want to listen to time broadcasts on your local subnet, de-comment the
# next lines. Please do this only if you trust everybody on the network!
#disable auth
#broadcastclient
------------------------------------------------------------------

sudo /etc/init.d/ntp restart




--- sudo ntpdate -u ntp1.sp.se
gives error:- 9 Jun 16:45:34 ntpdate[8459]: no server suitable for synchronization found

---sudo ntpq -p
gives this:- remote refid st t when poll reach delay offset jitter
==============================================================================
ntp1.sp.se .INIT. 16 u - 64 0 0.000 0.000 0.000
ntp2.sp.se .INIT. 16 u - 64 0 0.000 0.000 0.000

i have tried other server but restult is same .........
plz help me
 
Old 06-09-2009, 10:46 PM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Can you resolve the name? What does "dig ntp1.sp.se" give you?
 
Old 06-09-2009, 11:41 PM   #3
renuaseri
Member
 
Registered: Mar 2009
Posts: 39

Original Poster
Rep: Reputation: 15
Error:- ntpdate: no server suitable for synchronization found

"dig ntp1.sp.se" gives:--

; <<>> DiG 9.4.2 <<>> ntp1.sp.se
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3104
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;ntp1.sp.se. IN A

;; ANSWER SECTION:
ntp1.sp.se. 300 IN A 62.119.40.98

;; AUTHORITY SECTION:
sp.se. 11648 IN NS dns2.sp.se.
sp.se. 11648 IN NS dns1.sp.se.

;; Query time: 327 msec
;; SERVER: 10.114.1.11#53(10.114.1.11)
;; WHEN: Wed Jun 10 10:08:09 2009
;; MSG SIZE rcvd: 82
 
Old 06-10-2009, 12:47 AM   #4
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 609

Rep: Reputation: 218Reputation: 218Reputation: 218
I apologize if I am overlooking some aspect of what you are trying to do . . .

Why not just
Code:
sudo ntpdate pool.ntp.org
?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ntp client: no server suitable for synchronization found duyuyang Linux - Software 1 05-12-2009 10:56 PM
firefox and java applets, no suitable plugins found? tethysgods Linux - Software 3 06-08-2008 04:16 AM
ntpdate gets reply from server, ntpd doesn't (confused!) Lindahl Linux - Software 5 06-20-2006 06:26 PM
cronjob ntpdate error rubella Linux - General 2 11-09-2005 09:40 AM
no suitable configured kernel include tree found r.stiltskin Debian 4 08-02-2005 03:37 PM


All times are GMT -5. The time now is 03:37 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration