LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-07-2009, 06:22 AM   #1
izghitu
Member
 
Registered: Oct 2005
Location: localhost.localdomain
Distribution: CentOS
Posts: 109

Rep: Reputation: 16
BIND9 slave


Hi,

I am trying to set up a BIND9 slave server.

From the docs I found on the internet I can see that when you add a new domain it needs to be added on both slave and master in named.conf. Is this correct?

Is there a way to make the slave server automatically get and update any new domains that are added to the master server?

Please advise.

Thanks
 
Old 12-07-2009, 07:56 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Yes you have to add to named.conf on both hosts however the entries look slightly different:

Master:
Code:
zone "example.com" {
        type master;
        file "example.com";
        allow-query { any; };
};

Slave:
Code:
zone "example.com" {
        type slave;
        file "example.com";
        masters { 10.x.x.x; };
        allow-query { any; };
};
As you see in the latter you have to add the masters option to the zone statement on the slave.

To automate adding to slave you'd have to script it yourself. That could be done but would take some effort. If you search the BIND mail list archives there may be example scripts for that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind9 Master/Slave Install deibertine Linux - Server 6 08-20-2009 01:22 AM
BIND9 Master Slave Sync problem on Etch 4 servers dholgado Linux - Newbie 1 09-20-2008 09:12 PM
BIND9 help twlilinux Linux - Server 9 06-19-2008 03:14 PM
LXer: Installing A Bind9 Master/Slave DNS System LXer Syndicated Linux News 0 08-27-2006 01:33 PM
BIND9 slave DNS problem HELP!!! mlu Linux - Networking 2 05-05-2005 06:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration