From owner-freebsd-questions Mon Jan 6 14:43: 5 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 83B8B37B401 for ; Mon, 6 Jan 2003 14:43:03 -0800 (PST) Received: from truman.datasphereweb.com (12-231-81-122.client.attbi.com [12.231.81.122]) by mx1.FreeBSD.org (Postfix) with SMTP id D971E43EC2 for ; Mon, 6 Jan 2003 14:43:02 -0800 (PST) (envelope-from ryallsd@datasphereweb.com) Received: (qmail 47292 invoked from network); 6 Jan 2003 22:43:02 -0000 Received: from 12-229-238-38.client.attbi.com (HELO bartxp) (12.229.238.38) by 12-231-81-122.client.attbi.com with SMTP; 6 Jan 2003 22:43:02 -0000 From: "Derrick Ryalls" To: Subject: RE: how to make bind listen only to 127.0.0.1 Date: Mon, 6 Jan 2003 14:42:52 -0800 Message-ID: <003901c2b5d4$f5d757a0$0200a8c0@bartxp> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal 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 > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of > Wiroth Didier > Sent: Monday, January 06, 2003 2:21 PM > To: freebsd-questions@freebsd.org > Subject: how to make bind listen only to 127.0.0.1 > > > 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? add these two lines to /etc/hosts.allow named : localhost 127.0.0.1 : allow named : all : deny > > Thanks a lot > Didier > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message