From: Jessie Bryan Subject: Re: DNS for internal end external Date: Wed, 2 Jul 2003 01:26:12 -0700 (PDT) Sender: linux-admin-owner@vger.kernel.org Message-ID: <20030702012114.K62470@unixfoo.netlojix.net> References: <1057127539.3675.13.camel@krishna.softprosys.com> Mime-Version: 1.0 Return-path: In-Reply-To: <1057127539.3675.13.camel@krishna.softprosys.com> List-Id: Content-Type: TEXT/PLAIN; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "linux-admin@vger.kernel.org" On Tue, 2 Jul 2003, Murali Potla wrote: > > Hi, > > How do i configure bind so that when a request comes from our LAN, > address should be resolved to local address and when the request is from > outside it should resolve it to a public address. We do this in Bind 9 using "views" In the below example the "LAN" are clients that belong to 192.168.0/24 and the "outside" is everything else. example: view "internal" { match-clients { 192.168.0/24; }; recursion yes; zone "domain.com" { type master; file "domain.com-internal"; }; }; view "external" { match-clients { 0.0.0.0/0; }; recursion yes; zone "domain.com" { type master; file "domain.com-external"; }; }; HTH