All of lore.kernel.org
 help / color / mirror / Atom feed
From: Murali Potla <murali.potla@softprosys.com>
To: Murali Potla <murali.potla@softprosys.com>,
	Jessie Bryan <jbryan@netlojix.com>
Cc: "linux-admin@vger.kernel.org" <linux-admin@vger.kernel.org>
Subject: Re: DNS for internal end external
Date: 02 Jul 2003 17:00:02 +0530	[thread overview]
Message-ID: <1057145402.3675.33.camel@krishna.softprosys.com> (raw)
In-Reply-To: <20030702012114.K62470@unixfoo.netlojix.net>


On Wed, 2003-07-02 at 13:56, Jessie Bryan wrote:
> 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
> 

This is ok.
How can i use the same zone file for both internal and external 
clients ? Because here i need to maintain two files.

lets say for a domain.com i will have a zone file which will 
have both internal and external addresses. But when a query 
comes for abc.domain.com, it should be resolved to 192.168.1.10
if the request is from 192.168.1.5 and when a query comes for 
abc.domain.com from a public IP it should be resolved to the 
publicly addressable IP of abc.domain.com (lets say 
100.100.110.101). Is this setup possible with bind ?


Thanks 
Murali




  reply	other threads:[~2003-07-02 11:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-02  6:32 DNS for internal end external Murali Potla
2003-07-02  8:17 ` Daniel Eugenin M.
2003-07-02  8:26 ` Jessie Bryan
2003-07-02 11:30   ` Murali Potla [this message]
2003-07-03 15:35     ` Stephen Samuel
2003-07-02 15:40 ` Scott Taylor
2003-07-02 17:17 ` terry white

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1057145402.3675.33.camel@krishna.softprosys.com \
    --to=murali.potla@softprosys.com \
    --cc=jbryan@netlojix.com \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.