Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Set up slave DNS

0 views
Skip to first unread message

K

unread,
Mar 5, 2002, 11:42:55 AM3/5/02
to
I have 2 DNS servers. Server A needs to be the master for domainA.com and
server B needs to be master for domainB.com and all subdomains of
domainB.com. New subdomains of domainB.com are created once every couple of
days (or whenever someone signs up for hosting under it).

Now the thing is, how do I let these 2 DNS servers sync up with each other?
I've looked around the net for Bind docs on how to set up a slave dns server
that performs zone transfers of all the primary DNS server's zone files.
Can someone help me with the exact directive needed?

Michael Kjorling

unread,
Mar 5, 2002, 12:26:48 PM3/5/02
to

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi K,

Just set up server B as an ordinary slave for domainA.com and server A
as a slave for domainB.com:

// on server A
zone "domainb.com" {
type slave;
masters { ip.of.server.b; };
file "domainb.com.db";
};

// on server B
zone "domaina.com" {
type slave;
masters { ip.of.server.a; };
file "domaina.com.db";
};


Michael Kjörling

- --
Michael Kjörling -- Programmer/Network administrator ^..^
Internet: mic...@kjorling.com -- FidoNet: 2:204/254.4 \/
PGP: 95f1 074d 336d f8f0 f297 6a5b 2aa3 7bfd 8a70 e33e

``And indeed people sometimes speak of man's "bestial" cruelty, but
this is very unfair and insulting to the beasts: a beast can never be
so cruel as a man, so ingeniously, so artistically cruel.''
(Ivan Karamazov, in Dostoyevsky's 'The Brothers Karamazov')

*** Spammers: see http://michael.kjorling.com/spam ***
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Public key is at http://michael.kjorling.com/contact/pgp.html

iD8DBQE8hP9XKqN7/Ypw4z4RAv12AJ9k2EosiWOUpVfXSsy724ldVfbXtACgkqKD
qH13q+xMzojo+92rgF1lgug=
=Hvk6
-----END PGP SIGNATURE-----

WebReactor Networks

unread,
Mar 5, 2002, 1:11:24 PM3/5/02
to

K:

Is the problem that you want Server A to be a slave to Server B for all of
domainB.com's subdomains, where each domainB.com subdomain is a seperate
zone file? If so, then you'll need some other method (outside of BIND) to
generate the zone statements for your named.conf on the slave (Server A).

- John R. S.

p...@icke-reklam.ipsec.nu

unread,
Mar 5, 2002, 1:29:22 PM3/5/02
to

Shure :


$ssh A
$vi /etc/named.conf
$rndc reload
$exit


repeat as nessecary.


--
Peter Håkanson
IPSec Sverige (At the Riverside of Gothenburg, home of Volvo)
Sorry about my e-mail address, but i'm trying to keep spam out.
Remove "icke-reklam" and it works.

Pawel Rogocz

unread,
Mar 5, 2002, 4:52:33 PM3/5/02
to

You do not need a zone file for your subdomains.
Just put all the records in the zone file for domainb.com
It will sync up okay.

Pawel


On Tue, Mar 05, 2002 at 03:07:13PM +0000, K wrote:
> I have 2 DNS servers. Server A needs to be the master for domainA.com and
> server B needs to be master for domainB.com and all subdomains of
> domainB.com. New subdomains of domainB.com are created once every couple of
> days (or whenever someone signs up for hosting under it).
>
> Now the thing is, how do I let these 2 DNS servers sync up with each other?
> I've looked around the net for Bind docs on how to set up a slave dns server
> that performs zone transfers of all the primary DNS server's zone files.
> Can someone help me with the exact directive needed?
>
>

--

K

unread,
Mar 5, 2002, 7:14:28 PM3/5/02
to
Now I'm guessing this feature of generating zone statements to be propagated
over to the slave must be one that many people need. I'd like some sort of
automated script that'll do this for me. Are there such scripts around?

"WebReactor Networks" <bi...@webreactor.net> wrote in message
news:a631oc$r...@pub3.rc.vix.com...

K

unread,
Mar 5, 2002, 7:14:28 PM3/5/02
to
Are there scripts out there that can automate this type of stuff and also
replace the "master" statements with "slave" statements for the slave's
named.conf file? I'm sure lots of admins have the need for such a script so
I'm hoping one already exists out there.

<p...@icke-reklam.ipsec.nu> wrote in message
news:a632q2$r...@pub3.rc.vix.com...

Nate Campi

unread,
Mar 5, 2002, 8:29:52 PM3/5/02
to

On Tue, Mar 05, 2002 at 11:50:13PM +0000, K wrote:
> Now I'm guessing this feature of generating zone statements to be propagated
> over to the slave must be one that many people need. I'd like some sort of
> automated script that'll do this for me. Are there such scripts around?

Check http://www.campin.net/DNS/ or the list archives.
--
Nate

"A man who won't die for something is not fit to live."
-Martin Luther King, Jr.

0 new messages