From owner-freebsd-questions Mon Jan 6 14:54:18 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 692B937B405 for ; Mon, 6 Jan 2003 14:54:17 -0800 (PST) Received: from commonhouse.net (commonhouse.net [209.102.105.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id C936B43EA9 for ; Mon, 6 Jan 2003 14:54:16 -0800 (PST) (envelope-from wes@bogon.net) Received: (from wes@localhost) by commonhouse.net (8.11.6/8.11.6) id h06Ms9w16518; Mon, 6 Jan 2003 14:54:09 -0800 Date: Mon, 6 Jan 2003 14:54:09 -0800 From: Wes Santee To: Wiroth Didier Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how to make bind listen only to 127.0.0.1 Message-ID: <20030106145409.A16439@bogon.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from didier.wiroth@mcesr.etat.lu on Mon, Jan 06, 2003 at 11:20:53PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Jan 06, 2003 at 11:20:53PM +0100, Wiroth Didier wrote: > Hey, > I would like to run bind as a caching only server (v 8.3.3 > from 4.7-release). I would also like that it only listens > on port 127.0.0.1, but how? I tried this entry in > named.conf, but it didn't work: > query-source address 127.0.0.1 port 53; > > It still listens on the real ip address? > sockstat -4 shows: > root named 296 20 udp4 192.168.0.2:53 > > root named 296 21 tcp4 192.168.0.2:53 > root named 296 22 udp4 127.0.0.1:53 > > > What do I have to change so it named only listens to > 127.0.0.1? > 'man named.conf', and look for the 'listen-on' directive. options { // Your options listen-on { 127.0.0.1; }; }; // Other BIND directives Cheers, -Wes To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message