[ntp:questions] What exactly happens to ntpd if it is made to run and no server address is given in the ntp.conf file?
Could someone give me a blow-by-blow account of what happens exactly? Also, does ntpd search for an NTP server in the network accessible by it if no server is specified? Can we implement this functionality if not available? Regards, Arpith ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] What exactly happens to ntpd if it is made to run and no server address is given in the ntp.conf file?
On 9/25/2012 12:26 PM, Arpith Nayak wrote: Could someone give me a blow-by-blow account of what happens exactly? Also, does ntpd search for an NTP server in the network accessible by it if no server is specified? Can we implement this functionality if not available? Regards, Arpith What problem are you trying to solve? I don't know what NTPD will do if run without a time source. I can't think of any use for such a configuration! ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] What exactly happens to ntpd if it is made to run and no server address is given in the ntp.conf file?
On Sep 25, 2012, at 9:26 AM, Arpith Nayak wrote: Could someone give me a blow-by-blow account of what happens exactly? Also, does ntpd search for an NTP server in the network accessible by it if no server is specified? Can we implement this functionality if not available? If you try to start ntpd without any valid config, it returns an error: getconfig: Couldn't open /etc/ntp.conf If you have an ntp.conf which doesn't specify any timeservers, ntpd will run, and probably will apply any drift file if one is available to the local clock, but the time will not be disciplined further. I believe ntpd will stay at stratum=16 unless at least the local clock, TOS orphan mode, or some other time source is available. I suspect that you are looking for either the pool directive in recent ntpd versions, or maybe multicast? Regards, -- -Chuck ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] What exactly happens to ntpd if it is made to run and no server address is given in the ntp.conf file?
On 2012-09-25, Arpith Nayak arpithna...@gmail.com wrote: Could someone give me a blow-by-blow account of what happens exactly? Try it. It quits AFAIK but I have never tried it. Also, does ntpd search for an NTP server in the network accessible by it if no server is specified? Can we implement this functionality if not No. Where in the world would it search? Would you really want ntpd to try every ip address on the internet to see if an ntpd server resides there? available? Regards, Arpith ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] What exactly happens to ntpd if it is made to run and no server address is given in the ntp.conf file?
On 2012-09-25, Brian Utterback brian.utterb...@oracle.com wrote: On 9/25/2012 3:18 PM, unruh wrote: On 2012-09-25, Arpith Nayak arpithna...@gmail.com wrote: Could someone give me a blow-by-blow account of what happens exactly? Try it. It quits AFAIK but I have never tried it. Also, does ntpd search for an NTP server in the network accessible by it if no server is specified? Can we implement this functionality if not No. Where in the world would it search? Would you really want ntpd to try every ip address on the internet to see if an ntpd server resides there? Isn't that essentially what manycast does? As long as your network topology supports the multicast server discovery messages. A minimal default configuration usable over the public Internet (which, AFAIK, does not propagate multicast messages) requires the pool directive. -- Steve Kostecke koste...@ntp.org NTP Public Services Project - http://support.ntp.org/ ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] What exactly happens to ntpd if it is made to run and no server address is given in the ntp.conf file?
Arpith Nayak wrote: Also, does ntpd search for an NTP server in the network accessible by it if no server is specified? Can we implement this functionality if not available? You can do something like: # ALL (Clients and/or Servers) tos cohort 1 orphan 11 restrict default limited kod nomodify notrap restrict 127.0.0.1 restrict source nomodify keys /etc/ntp.keys # e.g. contains: 123 M YOUR_MD5_KEY trustedkey 123 manycastserver 224.0.1.1 manycastclient 224.0.1.1 key 123 preempt multicastclient 224.0.1.1 key 123 preempt broadcastclient -- E-Mail Sent to this address blackl...@anitech-systems.com will be added to the BlackLists. ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions