LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-29-2004, 03:33 PM   #1
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
NTP Question


I'm wanting to set up an NTP client on my linux machine at home. I don't want it serving the other machines on my network necessarily, but I do want it updating via some trusted machine on the internet. Here are the questions I have:

1) Is the nptd what I'm looking for in terms of a client?
2) Where can I get an IP of a machine that I can trust for a good time update?
 
Old 11-29-2004, 03:37 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Re: NTP Question

Quote:
Originally posted by gauge73
1) Is the nptd what I'm looking for in terms of a client?
Yes you can use ntpd - see:
http://www.eecis.udel.edu/~mills/ntp/html/ntpd.html

Alternatively you can just set up a cron job to run:
ntpdate some.time.server

Quote:
Originally posted by gauge73
2) Where can I get an IP of a machine that I can trust for a good time update?
There is a good list here:
http://ntp.isc.org/bin/view/Servers/WebHome

Ideally, traceroute to a few and use the one with the fewest hops/fastest response time. ntpd will compensate for the time delays but being closer won't hurt.

Last edited by david_ross; 11-29-2004 at 03:39 PM.
 
Old 11-29-2004, 03:41 PM   #3
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
How does it compensate (just out of curiosity)? Does it ping the server, then figure in the result of the ping?

Thanks for the response.
 
Old 11-29-2004, 03:42 PM   #4
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
Take a look here also:
http://www.bldrdoc.gov/timefreq/serv...e-servers.html
http://www.bldrdoc.gov/timefreq/serv...-computer.html

Last edited by itsjustme; 11-29-2004 at 03:45 PM.
 
Old 11-29-2004, 03:49 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Quote:
Originally posted by gauge73
How does it compensate (just out of curiosity)? Does it ping the server, then figure in the result of the ping?
The documentation can go into a lot more detail than I ever could:
http://www.eecis.udel.edu/~mills/ntp/html/index.html
http://www.eecis.udel.edu/~mills/ntp.html
 
Old 11-30-2004, 05:09 AM   #6
linuxles
Member
 
Registered: Mar 2004
Location: Austin, TX
Distribution: CentOS Fedora RHEL SLES Knoppix
Posts: 78

Rep: Reputation: 15
You can use "pool.ntp.org", it's a dns alias that will try to find the ntp server nearest to you.
Currently there are 220 servers as of 2004-09-07.

See: http://www.pool.ntp.org/

Note: do not type "pool.ntp.org" into your web browser, it shows a random web site which
probably has nothing to do with the pool.ntp.org project.

/Les

Last edited by linuxles; 11-30-2004 at 05:11 AM.
 
Old 11-30-2004, 09:28 AM   #7
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
My server is one of the pool servers. Use ntpd. Check whether you have a regional pool eg the one in the uk is uk.pool.ntp.org which you will findhere . Then setup your ntp.conf with three lines;
server uk.pool.ntp.org
server uk.pool.ntp.org
server uk.pool.ntp.org
This ensures that ntp will sync with the most reliable of the 3 and will ensure that you at least get a response when one of them is not available. If you do not intend running an ntp server PLEASE use pool.ntp.org. The people running the stratum 1 servers are starting to get really hacked off with the millions of requests they are getting every second and many are threatening to withdraw these public services. If anyone reading this has a stable and static ip with adsl and they have a server running 24/7 please look to donate some bandwidth to ntp and assist a very necessary service to most internet servers. My ntp server gets about 4-6kbits/s of requests which is quite small. If you are up for this then you can find how to at pool.ntp.org

Last edited by TigerOC; 11-30-2004 at 09:31 AM.
 
  


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 oddo Linux - Software 1 01-21-2005 03:15 PM
Question re: NTP Server daihard Linux - Software 1 01-10-2005 02:54 AM
NTP cannot work with timeserver, NTP-d can jerryvapps Linux - Networking 0 08-04-2004 02:04 PM
NTP cannot use server, NTP -d can jerryvapps Linux - Newbie 0 07-28-2004 02:22 PM
Help with ntp triley Linux - General 1 01-30-2004 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:06 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration