The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
NIS+ questions wjones SUN Solaris 0 04-08-2008 03:48 AM
ftp server on old home computer - a few questions boredbody UNIX for Dummies Questions & Answers 1 03-11-2008 05:07 PM
Linux Community Questions x86 Server Numbers - eWeek iBot UNIX and Linux RSS News 0 10-31-2007 07:40 AM
some questions... Blip Shell Programming and Scripting 9 01-07-2004 07:10 PM
Sun server hardware questions Synbios SUN Solaris 2 09-04-2003 01:26 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-07-2008
Registered User
 

Join Date: Oct 2007
Posts: 110
Red face 3 questions about NTP server

Folks;
I'm setting up a new NTP server to sync time for our network. I have one Linux server that needs to point to that NTP server
My 3 questions are:

1. I added the IP address for the NTP server to the "/etc/hosts" file on the Linux server. Is that all i need to do to make the Linux server point to the NTP server?

2. After pointing the Linux server to the NTP server, do i need to reboot the Linux server or restart any daemon on the Linux server? in other words, what do i need to do to make sure the changes i made in the "/etc/hosts" took affect?

3. Is there a way to test the NTP server to make sure it interact with the Linux server & will work fine if i have a timing issue on the Linux server? I want to test it so if something happens for real i don't look like a dummy

Thanks Folks in advance
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-07-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
What do you mean by "point to"? The alias in /etc/hosts will let you refer to the server by the name you put in /etc/hosts instead of the IP address but this is not strictly necessary; you could simply set up your NTP client to connect by IP address, although of course it's a good habit to have a name for the server.

If you have an ntp client running continuously then it will likely need to be nudged to reread its configuration. Many daemons have a way to reinitialize without having to actually shut it down completely, often by sending a SIGUSR1, but read the documentation for whatever you are running.

You seem to be missing the step where you find out what NTP client software you are running, and read its documentation to see how you tell it which NTP server to use. That should also give some hints for your third question.

If you have ntpdate, it can be run with a diagnostic option which tells you which server it connected to and what the result was. If you are on Debian or Ubuntu, note the difference between ntpdate and ntpdate-debian
Reply With Quote
  #3 (permalink)  
Old 04-07-2008
Registered User
 

Join Date: Oct 2007
Posts: 110
When i said point to i meant they can talk to each other (in other word i want the client on the Linux box to be able to talk to the NTP server.
That's why i was asking about how to add the NTP server to the Linux box as a trusted host.

one more question i have now:
Should i add NTP server IP address to the ntp.conf file on the Linux box?
Reply With Quote
  #4 (permalink)  
Old 04-07-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
If by "trusted" you mean you have hosts.deny or firewall rules or something, then you still need to tell us more about those.

Now that you have it in /etc/hosts and have checked that you can ping by name (you have, yes?) it's probably better to put in the host name from /etc/hosts
Reply With Quote
  #5 (permalink)  
Old 04-08-2008
Registered User
 

Join Date: Oct 2007
Posts: 110
Sorry if my questions weren't clear.
let me clarify it a little more.
What should i do to connect a Linux server to NTP server?
Reply With Quote
  #6 (permalink)  
Old 04-08-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
If you've done all which is listed here, and it doesn't work, maybe you can elaborate on what does work. Can you ping the server? Can you run ntpdate and see that you connect to it?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
linux, ubuntu

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 12:21 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66