Search Again:

Re: ns1 and ns2 point to two servers

From: Men & Mice Support
Date: Wednesday, April 10, 2002
Time: 10:46:36 pm

At 10:42 PM -0700 4/9/02, rashantha de silva wrote:
>hello
>
>can you split ns1 and ns2 into two primary domain files so that each ns look
>will direct the web user to different ip address.

Yes, you can. In other words, instead of having a primary server and
a secondary server, you have two primary servers. The two servers
have almost identical copies of the zone, except the IP address of
the web server is different on each.

>now both 64.100.30.60 and 229.199.40.75 is bound to a internal address say
>192.168.0.2 where the web server sits.
>
>i am trying to find a method where traffic can flow through different ips
>via respective ns returns.
>
>this way when ns1 one fails which means ip #1 is down traffic will still
>flow to ns2 and reach the web server via ip #2.

Right.

>main_domain.net ns ns1.main_domain.net
>ns1.maindomain.net a 64.100.30.60
>main_domain.net a 64.100.30.60
>
>
>main_domain.net ns ns2.main_domain.net
>ns2.maindomain.net a 229.199.40.75
>main_domain.net a 229.199.40.75

Not good. Instead, have normal-looking zone files, like this:

On ns1:

zone.name. NS ns1.zone.name.
zone.name. NS ns2.zone.name.
zone.name. MX 10 mx1.zone.name.
zone.name. MX 20 mx2.zone.name.
ns1.zone.name. A 64.100.30.60
mx1.zone.name. A 64.100.30.60
ns2.zone.name. A 229.199.40.75
mx2.zone.name. A 229.199.40.75
zone.name. A 64.100.30.60
www.zone.name. A 64.100.30.60

On ns2:

zone.name. NS ns1.zone.name.
zone.name. NS ns2.zone.name.
zone.name. MX 10 mx1.zone.name.
zone.name. MX 20 mx2.zone.name.
ns1.zone.name. A 64.100.30.60
mx1.zone.name. A 64.100.30.60
ns2.zone.name. A 229.199.40.75
mx2.zone.name. A 229.199.40.75
zone.name. A 229.199.40.75
www.zone.name. A 229.199.40.75

>can these primary files be called main_domain_1.net and main_domain_2.net

The files can be called whatever you want, if you're using QuickDNS
Pro 2.x and have to worry about filenames. With QuickDNS 3, keep the
zone names the same.

CAUTION: If you use QuickDNS 3 to do this, never connect to both
servers at the same time and make changes. If you are connected to
both servers and save either version of the zone, it will save to
both servers.
____________________________________________________________________
Chris Buxton Men & Mice
support@menandmice.com Making DNS Easy



Messages In This Thread:



Return to Digital Point Solutions' Home Page