Date: Tue, 18 Jan 2005 16:49:23 +1030 From: Ian Moore <imoore@picknowl.com.au> To: freebsd-questions@freebsd.org Cc: Rob <spamrefuse@yahoo.com> Subject: Re: ntpd problems since upgrading to 5.3 - found the problem! Message-ID: <200501181649.31448.imoore@picknowl.com.au> In-Reply-To: <200501180321.09452.4711@chello.at> References: <200501112100.10680.imoore@picknowl.com.au> <20050117180915.B30253@starfire.mn.org> <200501180321.09452.4711@chello.at>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1450407.vBy6b9rBBi Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=3D0 flags=3D0 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: Permissi= on > > > > > > 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=20 "write to localhost.foo.com failed: Permission denied". My machine's hostname is daemon.foo.com, something I assumed was safe to us= e. Well it turns out that localhost.foo.com actually exists, it resolves to=20 216.234.246.150, as do lots of others like localhost.foo.org, foobar.org,=20 example.org etc. So ntpq must do a reverse name lookup for localhost.<whatever the host's=20 domain name is> and in my case it doesn't reslove to 127.0.0.1 but to=20 216.234.246.150, to which ntpq has no access - hence the Permission denied= =20 error! Now I'm not sure what the best way to get around this would be. I run a=20 caching name server on the machine, so I guess I can tweak it to force=20 localhost.foo.com resolve to 127.0.0.1 Cheers, =2D-=20 Ian GPG Key: http://homepages.picknowl.com.au/imoore/imoore.asc --nextPart1450407.vBy6b9rBBi Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBB7KpzfITqkXhImmIRAkXdAJ99wjkfpL2F11EZsz8UCXUQ5m/z8gCfYLli HJxq7pjVxNBFj8DrrhgawL8= =XboL -----END PGP SIGNATURE----- --nextPart1450407.vBy6b9rBBi--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501181649.31448.imoore>