[NEWBIE] 2 DNS on the same box

Mark Damrose mdamrose at elgin.cc.il.us
Thu May 23 20:35:07 UTC 2002


<phn at icke-reklam.ipsec.nu> wrote in message
news:acjho9$ethk$1 at isrv4.isc.org...
>
> SuperEdo <superedo.geo at yahoo.com> wrote:
>
> > OK.
> > I know that is not serious, it's dangerous, it's a non-sense etc.etc.
>
> There is special cases where it's nice ( such as beeing able to
> run several bind in my laptop for training session for dns classes)
>
> In fact, when i run my dns-class i use 14 bind's in my laptop. 13
> using the root-servers addresses and the 14'th running as TLD registrar.
> That way the students will be able to create their own Internet during
> the excersizes, and we have full control over all zones. Very handy !
>
> > but I'd like to know if I can use only 1 box running 1 BIND in order to
> > show 2 NS are running.
> > I will assign 2 ip to my box with BIND8 installed and I register IP1 as
> > ns1.mydomain.com and IP2 as ns2.mydomain.com, and then I set up
> > ns1.mydomain.com as primary nameserver and ns2.mydomain.com as secondary
> > in my registrar panel.
> > Will it work?
>
> Yes

I'd say depends.  OP doesn't say, but it could be tricky if the 2 IP are
from different ISPs.  Even then it should work fine so long as ISP used for
default route doesn't restrict source addresses tp prevent spoofing and both
ISPs stay up.

>
> > Will the only BIND, acting obiouvsly as master only, reply properly to
> > requests directed to ns1 & ns2?
>
> it has nothing to do with maste/slave . You just create one
> config file for each bind, containg a "listen-on" statement
> reflecting which ip-address to listen to, and start the bind's
> with a -c <the-config-file>
>
> From that point you will have a bunch of independent bind's running,
> each with it's own configuration. You make them master or slave or both
> as you do with any other bind.
>
> > Is there any setup to make this kind of configuration work or is it
> > "transparent"? (I mean, no particular BIND setup)
> > Are primary/secondary & master/slave somehow related?
> > Can I set up both NS as master or slave (providing they're updated
> > properly)?
>
> You must setup unique "control-channels" for all, and use ndc -c
<channelname>
> in order to direct ndc to the proper server ( or rndc if you prefer )
>
>
> > Thank you in advance for your reply.
>
> > SuperEdo
>
>
>
> --
> Peter Håkanson
>         IPSec  Sverige      ( At Gothenburg Riverside )
>            Sorry about my e-mail address, but i'm trying to keep spam out,
>    remove "icke-reklam" if you feel for mailing me. Thanx.
>




More information about the bind-users mailing list