All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jessie Bryan <jbryan@netlojix.com>
To: "linux-admin@vger.kernel.org" <linux-admin@vger.kernel.org>
Subject: Re: DNS for internal end external
Date: Wed, 2 Jul 2003 01:26:12 -0700 (PDT)	[thread overview]
Message-ID: <20030702012114.K62470@unixfoo.netlojix.net> (raw)
In-Reply-To: <1057127539.3675.13.camel@krishna.softprosys.com>

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

  parent reply	other threads:[~2003-07-02  8:26 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 [this message]
2003-07-02 11:30   ` Murali Potla
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=20030702012114.K62470@unixfoo.netlojix.net \
    --to=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.