Skip site navigation (1)Skip section navigation (2)
Date:      17 Jun 2003 22:15:32 -0400
From:      Chris Shenton <chris@shenton.org>
To:        JacobRhoden <jrhoden@unimelb.edu.au>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Two DNS servers with one IP address
Message-ID:  <87wufkjfln.fsf@PECTOPAH.shenton.org>
In-Reply-To: <200306181208.28443.jrhoden@unimelb.edu.au>
References:  <00c101c3353c$4ecbe100$0100a8c0@ibacsoft.dynu.com> <200306181208.28443.jrhoden@unimelb.edu.au>

next in thread | previous in thread | raw e-mail | index | archive | help
JacobRhoden <jrhoden@unimelb.edu.au> writes:

> On Wed, 18 Jun 2003 11:52 am, Alfonso Romero wrote:
> > Is it possible to have two DNS servers with only one public IP address? I
> > have a FreeBSD gateway connected to the Internet with a DSL modem, using
> > natd to connect the other PCs on my LAN, and was wondering if I could have
> > two DNS servers to register domain names.
> 
> No its not. If you really wanted two seperate nameservers on 1 machine (which 
> are both accessable to the world) you will need to have two static ips at 
> that box.

What are you trying to do?  Serve one set of data to the Internet
(world) and a different set to your internal LAN?  This is common for
hiding internal host/address information. It's usually called "split
dns" or "split brain" or "split horizon".

I believe BIND can do this, but I haven't used it for this.  I've been
using the "djbdns" suite which has this built in.  Each record can be
tagged with a label which can be associated with a set of addresses
(e.g., inside LAN, anyone else) and it will reveal or hide that record
based on the requestor's address.    djbdns is a rather different
architecture than BIND   so if you're used to BIND it's a bit of a
learning curve.  If you're not wedded to BIND, you might be interested
in djbdns.  Check www.djbdns.org, the record label you want is the
percent sign.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87wufkjfln.fsf>