[ntp:questions] Re: Translation names to IP is not working

Danny Mayer mayer at gis.net
Mon Oct 13 16:50:06 UTC 2003

Dale Worley <worley at dragon.ariadne.com> wrote in message news:<87ad8av79s.fsf at netnews.comcast.net>...
> mayer at gis.net (Danny Mayer) writes:
> > > The "server" configuration command works using DNS names.  But the
> > > "restrict" command only supports a numeric IP address.  See the
> > > accopt.htm page.
> > >  
> > If that's true (and I haven't had a chance to look) it should be changed.
> > the getnetnum() does take either so it should work. Check this again
> > with 4.2.0 when it comes out (shortly).
> There are a lot of complications, especially if the DNS name has
> multiple addresses, since the 'restrict' may be using a different
> address than the 'server'.
> I would propose that we be able to attach 'restrict' modifications to
> 'server' and 'peer' directives.  The 'restrict' would implicitly
> specify the address of the server (as it was looked up), and goes away
> if the server is un-configured.
> Dale

In the meantime I would strongly suggest that if you want to use the
restrict line you use the IP address for both the server line and the
restrict line. You are less likely to get unexpected results that way.


More information about the questions mailing list