From owner-freebsd-security Wed May 24 23:25:36 2000 Delivered-To: freebsd-security@freebsd.org Received: from gndrsh.dnsmgr.net (GndRsh.dnsmgr.net [198.145.92.4]) by hub.freebsd.org (Postfix) with ESMTP id 1D89237B706 for ; Wed, 24 May 2000 23:25:32 -0700 (PDT) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.9.3/8.9.3) id XAA68670; Wed, 24 May 2000 23:25:16 -0700 (PDT) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <200005250625.XAA68670@gndrsh.dnsmgr.net> Subject: Re: named, and socket bindings In-Reply-To: <20000525005653.X6137@cthulu.compt.com> from Klaus Steden at "May 25, 2000 00:56:53 am" To: klaus@compt.com (Klaus Steden) Date: Wed, 24 May 2000 23:25:15 -0700 (PDT) Cc: freebsd-security@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The newer version of bind does not have to use port 53 for outbound queries, so it opens a high port for this. You can turn this off with options { query-source address * port 53; }; You can even force it to always use a specific IP address, which is great for named running behind firewalls/filter routers. > I was playing a bit with 'sockstat' on the FreeBSD 3.4 boxen we have around > here that offer name service. > > On both I noticed something that was, to me, a bit odd. The sockets that named > had bound were, as expected, the domain port on all the machine's interfaces, > but also, a random high UDP port. > > I checked two BSDI boxes (4.0) and they don't seem to have the same situation. > What gives? > > Did I miss or forget something obvious? Why would named have to grab a port > that's not port 53, unless it was doing a zone transfer (and that doesn't seem > to be the case) ... is this a bit of a labour-saving measure, the FreeBSD named > pre-allocates a port and uses it for zone transfers the lifetime of the whole > named process? > > I'm curious. > > Anyone have the answer? > > thanks, > Klaus > > -- > Klaus Steden | > Unix Systems Administrator | > Command Post Toybox | TODO: > http://www.compt.com/ | 1) Learn to use my new Unix account. > klaus@compt.com | 2) Learn how to change this list. > Phone: (416) 585-9995 x345 | > Fax: (416) 979-0428 | > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-security" in the body of the message > -- Rod Grimes - KD7CAX @ CN85sl - (RWG25) rgrimes@gndrsh.dnsmgr.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message