ntpd problems since upgrading to 5.3 - found the problem!

Ian Moore imoore at picknowl.com.au
Mon Jan 17 22:19:35 PST 2005


On Tue, 18 Jan 2005 12:50, Christian Hiris wrote:
> On Tuesday 18 January 2005 01:09, John wrote:
> > On Mon, Jan 17, 2005 at 12:49:00PM -0600, John wrote:
> > > On Mon, Jan 17, 2005 at 12:22:48PM -0600, John wrote:
> > > > On Tue, Jan 11, 2005 at 11:23:28PM +0900, Rob wrote:
> > > > > Ian Moore wrote:
> > > > > > Hi,
> > > > > > Ever since I upgraded from 5.2.1-RELEASE to 5.3-RELEASE, I've
> > > > > > been getting the following error on boot:
> > > > > > ntpd[380]: bind() fd 7, family 28, port 123, addr fe80:1
> > > > > >
> > > > > > ::204:61ff:fe46:be89, in6_is_addr_multicast=0 flags=0 fails:
> > > > > > :: Can't assign
> > > > > >
> > > > > > requested address
> > > > > >
> > > > > > ntpd seems to be working from what I can see in it's log file,
> > > > > > but I can't do anything with ntpq to check it.
> > > > > > Wether I run it as my normal user or as root, running ntpq -p
> > > > > > always gives: ntpq: write to localhost.foo.com failed: Permission
> > > > > > denied
>
> Try to add "disable auth" to your ntp.conf.
>

I tried that, sadly it made no difference.
However, I think I've found the problem - the error message I get with ntpq is 
"write to  localhost.foo.com failed: Permission
denied".
My machine's hostname is daemon.foo.com, something I assumed was safe to use.

Well it turns out that localhost.foo.com actually exists, it resolves to 
216.234.246.150, as do lots of others like localhost.foo.org, foobar.org, 
example.org etc.

So ntpq must do a reverse name lookup for localhost.<whatever the host's 
domain name is> and in my case it doesn't reslove to 127.0.0.1 but to 
216.234.246.150, to which ntpq has no access - hence the Permission denied 
error!

Now I'm not sure what the best way to get around this would be. I run a 
caching name server on the machine, so I guess I can tweak it to force 
localhost.foo.com resolve to 127.0.0.1

Cheers,

-- 
Ian


GPG Key: http://homepages.picknowl.com.au/imoore/imoore.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050118/73308580/attachment.bin


More information about the freebsd-questions mailing list