[Help] Setup slave dns server


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers [Help] Setup slave dns server
# 1  
Old 10-28-2009
[Help] Setup slave dns server

Hi all.

I need to configure a secondary dns server to get the zones that are in the primary server.
How can I do this? It's possible to make to sync automatically?
What configuration I ahve to do? And in which files?
Thanks in advance.

If anyone could give me examples or a tutorial, that would be great.
# 2  
Old 10-28-2009
Your question is too open. You don't look like you've done your homework which is the quickest way to not get a response on this forum. Figure some stuff out first:

  1. What type of DNS server do you run now (the server that will be the master)? Do you host it? What is the platform it runs on?
  2. Do you want to stick with the same DNS server for the slave? If not, what? There are plenty to choose from. What platform will it run on?

The DNS server you choose and the platform it runs on will need to be determined before you can ask what configuration you need. Also, any DNS server is going to have documentation and a user community that would be your first resources for information on how to set it up.
# 3  
Old 10-29-2009
Sorry for not specify my question. You are right.

I have two servers. One will be primary and the other secondary.
Both have installed CentOS 5.4 and Bind.
The primary is working. It respondes to queries and already have some dns zones "working on it".
So, the question I want to make in the first post was: how to configure secondary (and primary if needed) to automatically get the dns zones from the primary?
What configurations I have to make? And which servers?

I read some websites that say that allow-transfer is needed. But I'm pretty sure that this is not enough.
I already check that the rndc.key is the same in both server, too.
Many websites talk about this, but none says especifically how to implement this configuration. And because primary is already running, I don't want to make "experiences".
Maybe, I will have to try this in a VMWare.

Anyway, if someone could give me some guidance, I appreciate.
# 4  
Old 10-30-2009
Setting up a slave (secondary) DNS server on Centos is relatively easy. allow-transfer is not needed on the slave but must be added to named.conf on the master.
Code:
option {
     .....
     allow-transfer { ip_address_of_slave_dns_server; } ;
     .....
}

You need to add a slave zone to named.conf on the slave. Here is an example of a slave zone:
Code:
zone "example.com" {
   type slave;
   // one or more master nameservers.  Reply with correct IPs.
   masters { 172.100.10.1; 172.100.10.2; };
   // file can be named anything you like but this is a common naming convention
   file "slaves/example.com.zone";
};

Here is the BIND9 Manual. They are several example configurations which should help you.
# 5  
Old 10-30-2009
Thanks for your reply fpmurphy.

It really seems easy.
But,...
This way (as I understand) I have to create a new zone in the slave every time I create a new zone in the master. If I have thousands zones it will take me a long time.
It's possible to do it automatically? i.e., when I create a new zone in the master, the slave gets it? The bind have this option?

Thanks in advance.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. IP Networking

DNS question about initial Master/Slave setup

Hey everyone. I'm creating a DNS master/slave server set up. I have the configurations all done I believe, the master has the required zone file, and the named.conf file has the allow transfer and allow query stuff set. The slave has it's own configs set. My question is that when initially... (1 Reply)
Discussion started by: Lost in Cyberia
1 Replies

2. Red Hat

DNS Server Setup Centos 6.5 Issues

I am having a bit of trouble getting my CENTOS 6.5 DNS server to work correctly in our testlab environment. Lab network is 10.8.0.0/24 in which we all access from 10.7.0.0.0/24 && 10.0.0.0/24. Here are my configs: options { listen-on port 53 { 127.0.0.1; 10.8.0.19;}; #listen-on-v6 port 53 {... (2 Replies)
Discussion started by: metallica1973
2 Replies

3. Linux

Setting up slave DNS?

can someone point me in the right direction im trying to setup a Slave dns server this is my named.conf file zone "website1.org" { type slave; file"mydb-for-website1-org"; notify NO; };and this is my var/named/mydb-for-website1-org $TTL 3D @ IN SOA ... (1 Reply)
Discussion started by: gangsta
1 Replies

4. IP Networking

How to DNS Setup ??

Dear All, I need to setup DNS just for the local network. So, I created a master zone with all the settings. I created A records and NS records. Applied new configurations and Stopped Bind9 and then restarted it. But when I enter the domain name in the browser of another client machine it... (9 Replies)
Discussion started by: krishna.lu
9 Replies

5. UNIX for Advanced & Expert Users

NIS setup: Mastr on AIX and slave on Solaris?

Hello - This could be a stupid question. But can we configure NIS with different flavors of UNIX. Like Master on AIX and slave on Solaris? ---------- Post updated 09-06-11 at 04:17 AM ---------- Previous update was 09-05-11 at 06:34 AM ---------- Hi - Can anyone please answer this? (1 Reply)
Discussion started by: manju--
1 Replies

6. IP Networking

DNS does all slave Name Server must be in the zone Resource Record file?

Hy guys, I've a problem configuring my Name Server (using bind 9) which is I'ts always necessary to put all slave Name Server for a zone in the zone resource record file or db (as you prefer)? I've this scenario: A - my domain which is son of some TLD and I delegated into two new domains B... (1 Reply)
Discussion started by: pharaoh
1 Replies

7. Solaris

DNS Server setup

I am trying to setup DNS server in Solaris 10. I have two blade 1500 system and want to setup two name server I would like to start setting up DNS. appreciate your help. (1 Reply)
Discussion started by: mnathan
1 Replies

8. AIX

Setup DNS server on AIX6.1

I'm planning of setting up a DNS server on AIX 6.1. Could someone shed me some lights on the step-by-steps of how to set this up? Thanks. (2 Replies)
Discussion started by: famasutika
2 Replies

9. UNIX for Dummies Questions & Answers

setup a DNS server for my redhat server

Using Redhat Linux Enterprise AS 4 can someone teach me how to setup a dns server for my webserver? i've registered a domainname at mydomain.com but when i type in the domain i register i cannot enter to my webserver. someone told me that it is related with the DNS setting on my server. i've... (2 Replies)
Discussion started by: kaixiang88
2 Replies
Login or Register to Ask a Question