Re: [ntp:questions] 3 Questions about setting up NTP

2008-04-10 Thread Danny Mayer
Ryan Malayter wrote:
 On Apr 8, 8:58 pm, Richard B. Gilbert [EMAIL PROTECTED]
 wrote:
 /etc/hosts is a perfectly OK thing to use.  It's not the only tool for
 the job and in most circumstances it's not the best tool but it works!

 For example, I have, I think, eleven computers in the house.  I'll be
 damned if I'll take off my shoes just to count the computers! I have an
 RFC-1918 private network.  I have not gone to the trouble of setting up
 a DNS server for my home.  Those of my computers that need to talk to
 the others have hosts files!  All have DNS resolvers and use my ISP's
 
 You don't need even need to set up your own DNS, there are lots of
 them available for free.
 Example: http://www.dyndns.com/services/dns/dyndns/.
 Much more maintainable that enditing a bunch of hosts files by hand.
 
 And of course setting up your own local dyanmic DNS takes minutes on a
 Windows Server using Microsoft DNS, and minutes with BIND on Linux,
 Windows, Solaris, whetever. The default packages on most Linux systems
 are set up as forwarders, so all you need to do is add your own zone
 info.

This really belongs on the BIND users mailing list rather than here. 
However, I would like to point out that if the default packages are set 
up as forwarders it's been packaged badly. Forwarders should only be 
used if absolutely necessary. There's no benefit to using forwarders 
under normal circumstances.

Danny

___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions


Re: [ntp:questions] 3 Questions about setting up NTP

2008-04-10 Thread Richard B. Gilbert
Ryan Malayter wrote:
 On Apr 8, 8:58 pm, Richard B. Gilbert [EMAIL PROTECTED]
 wrote:
 /etc/hosts is a perfectly OK thing to use.  It's not the only tool for
 the job and in most circumstances it's not the best tool but it works!

 For example, I have, I think, eleven computers in the house.  I'll be
 damned if I'll take off my shoes just to count the computers! I have an
 RFC-1918 private network.  I have not gone to the trouble of setting up
 a DNS server for my home.  Those of my computers that need to talk to
 the others have hosts files!  All have DNS resolvers and use my ISP's
 
 You don't need even need to set up your own DNS, there are lots of
 them available for free.
 Example: http://www.dyndns.com/services/dns/dyndns/.
 Much more maintainable that enditing a bunch of hosts files by hand.
 

It's all the same hosts file.  Edit ONE copy and distribute it.  NIS 
does the job on my Unix boxes.  Since I seldom have reason to add a new 
computer, maintenance is not a big issue.

I was introduced to the internet at a time when DNS was a revolutionary 
idea rather than a standard.  I can appreciate the advantages of DNS but 
they don't apply in my particular case.

___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions


Re: [ntp:questions] 3 Questions about setting up NTP

2008-04-09 Thread David Woolley
Richard B. Gilbert wrote:

 
 /etc/hosts is a perfectly OK thing to use.  It's not the only tool for 
 the job and in most circumstances it's not the best tool but it works!

It's neither sufficient nor necessary in this case.  It's not sufficient 
because it will do nothing unless you also configure the host name in 
ntp.conf.  It's not necessary because you can put the IP address in 
ntp.conf.

___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions


Re: [ntp:questions] 3 Questions about setting up NTP

2008-04-09 Thread Richard B. Gilbert
Danny Mayer wrote:
 Richard B. Gilbert wrote:
 Danny Mayer wrote:
 Setting up DNS doesn't take much effort to set up though admittedly I 
 also have worked on the source code.

 Setting up a DNS server on VMS and TCP/IP Services  was an experience 
 I'll carry to my grave.  We had been using the server operated by our 
 upstream provider until they decided that the load was more than they 
 could handle.

 
 Well VMS is a bit different! I used UCX at the time! :)
 
 This was ca. September 1998.  I had no training or experience but 
 neither did anyone else at the site and I got stuck with the job!

 The documentation didn't say much about it and most of what it did say 
 was either incomplete or just flat out wrong!  It was obviously written 
 by someone who had never done the job.

 The software, as issued, was broken. I wound up upgrading to the very 
 latest version of VMS plus the very latest ECO (13) for TCP/IP Services. 
   I spent a lot of time on the phone with third level tech support, a 
 wizard named Smiley Smith and, ultimately, with the developer.

 I had to do it again, a year or so later and it was none too easy the 
 second time around either!  Copies of DNS and BIND and RFCs 1032, 
 1033, 1034, 1035, and 1183 were my constant companions.  I still have 
 the big three-ring binder with all that stuff in it.  Who knows, I might 
 need it again someday although I hope not unless someone is sufficiently 
 desperate to pay two or three times my usual rates!
 
 Assuming that this was BIND4 or BIND8 I would not be at all surprised. 
 Paul and I are old VMS hackers and have several times discussed porting 
 BIND9 to VMS. Implemented DECThreads code would have been interesting. 
 It will probably never happen as it's a dying O/S unfortunately.
 
 Danny

I don't know which version of BIND was ported to UCX V3.3.  DEC's 
engineers tried to port the Berkeley TCP/IP code about ten years after 
Wollongong, TGV, and one or two other vendors had done it.  They didn't 
have a clue!  It took them years to get it right.  Ultimately the VMS 
version was ported using the Ultrix (DEC Unix) version as a base.  It 
wasn't until UCX (Ultrix Connection) V5 that they finally managed to get 
all their ducks in a row!

Those were interesting times.  From late August 1998 to late December, I 
learned more about TCP/IP, DNS, and BIND than I ever knew before (or since).

___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions


Re: [ntp:questions] 3 Questions about setting up NTP

2008-04-08 Thread Ryan Malayter
On Apr 7, 10:15 pm, [EMAIL PROTECTED] (unix2266) wrote:

 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?

You don't need to mess with /etc/nosts unless you don't have access to
a properly functioning DNS server, or there is no DNS entry for the
NTP server. Can you do an nslookup NTPservername command? If that
works, you don't need anythingin /etc/hosts.

 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?

You need to add a server NTPservername line to your ntpd.conf file
(without the brackets). Where that ntpd.conf file sits depends upon
your Linux distribution. Most recent Linux distributions already have
a default server line there for you that typically points to the
pool.ntp.org set of NTP servers on the internet.

After reconfiguring the ntpd.conf file, you need to restart NTPd. If
you don't know how to do that, restart the whole system.


  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

You can use the ntpq tool to monitor ntpd. Or you can use the ntpdate
command with the -D debug switch to just check to see if you can get
the time from the NTP server without actually setting the time on the
local system.

___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions


Re: [ntp:questions] 3 Questions about setting up NTP

2008-04-08 Thread Maarten Wiltink
unix2266 [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

 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?

No. /etc/hosts maps hostnames to IP addresses. It has nothing to do
with NTP per se. Add either the hostname or the IP address to the
configuration file for NTP, usually /etc/ntp.conf (but check).


  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?

No need to reboot. Just start or restart the NTP daemon/service.
How to do that varies.


  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

Run 'ntpq -p' against it. Specify the hostname of the NTP server as an
additional parameter after the '-p'.

An NTP server should really respond to ntpq. If it doesn't, it _may_ be
working fine but you have no easy way to check. If it does, there will
be lines listing its references; if one has an asterisk in front of it,
it's generally fine.

Assuming, that is, that the reference so marked is itself fine. You
haven't told us where your new NTP server is getting its time from.

Groetjes,
Maarten Wiltink


___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions


Re: [ntp:questions] 3 Questions about setting up NTP

2008-04-08 Thread Danny Mayer
Unruh wrote:
 [EMAIL PROTECTED] (unix2266) writes:
 
 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?
 
 Yup. If your ntp server was in some dns server, you did not even have to do
 that. 

You should not be touching etc/hosts for this purpose. If you want to 
use a specific IP address for a server you can do that in the ntp.conf 
file. If you have a DNS server you can put it in there and specify the 
FQDN on the server line but you shouldn't be messing with /etc/hosts. 
That's a long obsolete file and it really should be empty under normal 
circumstances.

Danny
___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions


Re: [ntp:questions] 3 Questions about setting up NTP

2008-04-08 Thread Danny Mayer
Richard B. Gilbert wrote:
 Danny Mayer wrote:
 Unruh wrote:
 [EMAIL PROTECTED] (unix2266) writes:

 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?
 Yup. If your ntp server was in some dns server, you did not even have to do
 that. 
 You should not be touching etc/hosts for this purpose. If you want to 
 use a specific IP address for a server you can do that in the ntp.conf 
 file. If you have a DNS server you can put it in there and specify the 
 FQDN on the server line but you shouldn't be messing with /etc/hosts. 
 That's a long obsolete file and it really should be empty under normal 
 circumstances.

 
 /etc/hosts is a perfectly OK thing to use.  It's not the only tool for 
 the job and in most circumstances it's not the best tool but it works!
 

In this case it's not necessary and causes unnecessary maintenance 
tasks. You can use the FQDN or the IP address of the NTP servers to use 
so why mess with hosts files?

 For example, I have, I think, eleven computers in the house.  I'll be 
 damned if I'll take off my shoes just to count the computers! I have an 
 RFC-1918 private network.  I have not gone to the trouble of setting up 
 a DNS server for my home.  Those of my computers that need to talk to 
 the others have hosts files!  All have DNS resolvers and use my ISP's 
 DNS servers in the usual manner in order to talk to the outside world.
 

Setting up DNS doesn't take much effort to set up though admittedly I 
also have worked on the source code.

 The host files do have a few key addresses of internet systems that I 
 might want to talk to even when my ISP is having a bad day!  They are 
 much better than they used to be but I sometimes think they should have 
 stuck to cable television!!

The things that your provider has done makes me leary of anything that 
they might provide.

Danny
___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions


Re: [ntp:questions] 3 Questions about setting up NTP

2008-04-08 Thread Richard B. Gilbert
Danny Mayer wrote:
 Richard B. Gilbert wrote:
 Danny Mayer wrote:
 Unruh wrote:
 [EMAIL PROTECTED] (unix2266) writes:

 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?
 Yup. If your ntp server was in some dns server, you did not even have to do
 that. 
 You should not be touching etc/hosts for this purpose. If you want to 
 use a specific IP address for a server you can do that in the ntp.conf 
 file. If you have a DNS server you can put it in there and specify the 
 FQDN on the server line but you shouldn't be messing with /etc/hosts. 
 That's a long obsolete file and it really should be empty under normal 
 circumstances.

 /etc/hosts is a perfectly OK thing to use.  It's not the only tool for 
 the job and in most circumstances it's not the best tool but it works!

 
 In this case it's not necessary and causes unnecessary maintenance 
 tasks. You can use the FQDN or the IP address of the NTP servers to use 
 so why mess with hosts files?
 
 For example, I have, I think, eleven computers in the house.  I'll be 
 damned if I'll take off my shoes just to count the computers! I have an 
 RFC-1918 private network.  I have not gone to the trouble of setting up 
 a DNS server for my home.  Those of my computers that need to talk to 
 the others have hosts files!  All have DNS resolvers and use my ISP's 
 DNS servers in the usual manner in order to talk to the outside world.

 
 Setting up DNS doesn't take much effort to set up though admittedly I 
 also have worked on the source code.
 

Setting up a DNS server on VMS and TCP/IP Services  was an experience 
I'll carry to my grave.  We had been using the server operated by our 
upstream provider until they decided that the load was more than they 
could handle.

This was ca. September 1998.  I had no training or experience but 
neither did anyone else at the site and I got stuck with the job!

The documentation didn't say much about it and most of what it did say 
was either incomplete or just flat out wrong!  It was obviously written 
by someone who had never done the job.

The software, as issued, was broken. I wound up upgrading to the very 
latest version of VMS plus the very latest ECO (13) for TCP/IP Services. 
  I spent a lot of time on the phone with third level tech support, a 
wizard named Smiley Smith and, ultimately, with the developer.

I had to do it again, a year or so later and it was none too easy the 
second time around either!  Copies of DNS and BIND and RFCs 1032, 
1033, 1034, 1035, and 1183 were my constant companions.  I still have 
the big three-ring binder with all that stuff in it.  Who knows, I might 
need it again someday although I hope not unless someone is sufficiently 
desperate to pay two or three times my usual rates!

___
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions