[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] DNS Question



Hi Gary,

which of the servers is primary and which is secondary ist
not a global switch but rather determined on a domain-base
(and of course determinde by the INTERNIC-entry of that domain).
You could have server 1 to be the primary for both,
but I would rather chose server 1 to be the primary for
those domains which are hosted on server 1 and the
secondary for those hosted on server 2

I do all the DNS manually, so if you want to use the
gui, someone else might be the right one to answer.

Manual config (RaQ3)



PRIMARY:

in /etc/named.conf of the primary (ns1.blabla.com) it says:

zone "aaaaa.com" in {
        type master;
        file "master/aaaaa.com";
        notify yes;
        };

and /etc/named/master/aaaaa.com of the primary reads:

; comment:
; BIND version named 8.2.2
; zone 'aaaaa.com'
@    IN SOA ns1.blabla.com. hostmaster.aaaaa.com. (
        2000041503      ; Serial number
        10800           ; Refresh after 3 hours
        3600            ; Retry after 1 hour
        604800          ; Expire after 1 week
        86400           ; Default Time To Live 1 day
        )
; Nameserver entries
        IN NS   ns1.blabla.com.
        IN NS   ns2.blabla.com.
; plus A-records, MX-records, CNAME for www etc.



SECONDARY

in /etc/named.conf of the secondary (ns2.blabla.com) you say:

zone "aaaaa.com" in {
        type slave;                                     /* I am a slave */
        file "slave/aaaaa.com";
        masters { 111.111.111.111; };     /* IP-address of ns1 - he is the
master */
        };




IN BOTH SERVERS

in /etc/named.conf:

options {
        directory "/etc/named/";              /* location of files */
        check-names master warn;        /* default */
        allow-transfer { xxx.xxx.xxx.xxx; };      /* IP-address of the other
nameserver */
        /* and more options ... like datasize etc */
        };

Also both nameservers have A-Records for ns1.blabla.com and ns2.blabla.com
(this blabla.com is probably a domain delegated to you anyway).


And after changing the config files I do a restart with

    kill -SIGHUP `cat /var/run/named.pid`




Difficult? No. Just a little typing needed. If you keep some
order with your filenames, then the thinking is done only once,
the rest is routine.

Warranty void anyway :-)

I got the doc from the net (e.g. http://www.tcm.hut.fi/~jii/bind82/ )
and that's it.


Michael


From: "RH Linux" <rhlinux@xxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Sunday, April 30, 2000 11:50 AM
Subject: [cobalt-users] DNS Question


> Hi guys
>
> I currently have two servers, both on different co-los. Right now i am
using
> both servers as their own DNS servers
>
> Can i use Server2's DNS to handle server1's dns stuff? this way all my dns
> is on one server instead of two...Of course i will reigster the dns to
> server2, AND if i do that, do i need to still add the entrys in server1?
Or
> do i just need to setup the account on server1 and setup the dns on
server2?
> since its all name based hosting...
>
> Thanks
> Gary
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>