[ntp:questions] restrict in ntpdc

Nagy Bela belus at petra.hos.u-szeged.hu
Mon Nov 1 10:31:42 UTC 2004


This is the last thing that I dont clearly understand 
(at least, I hope so).

I cheat from the example ntp.conf from

So basically my ntp.conf (would) look(s) like

addserver x.y.z.w #with possibly other options 
restrict default ignore
restrict x.y.z.w mask nomodify notrap noquery

But the machine is not connected when ntp starts.
So I would add the servers from /etc/ppp/ip-up and also the restrictions too.
The thing that I dont understand is when using, say, pool.ntp.org with
addserver, then how can I specify the corresponding restrict command
in ntpdc?
The examples show that in ntp.conf I can use the string pool.ntp.org.

But does it work in ntpdc? 
Or shall I query the IPs with ntpdc with a script as at
then use these IPs with the restrict commands?

So, rewriting the above for ntpdc

restrict ignore
restrict WHAT_COMES_HERE? mask nomodify notrap noquery
restrict version

(where at I have to specify something)

Thanks for your help in advance.


More information about the questions mailing list