LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-20-2018, 12:50 PM   #1
betterapp
LQ Newbie
 
Registered: Feb 2018
Posts: 3

Rep: Reputation: Disabled
Setup BIND Slave for two MASTER


I have 3 servers:

FIRST:
hostname: domain.com
IP: 192.168.0.1 / 192.168.0.2
DNS: ns1.domain.com, ns2.domain.com
with DNS entries:
domain.com. IN NS ns1.domain.com.
domain.com. IN NS ns2.domain.com.
domain.com. IN A 192.168.0.1
ns1 IN A 192.168.0.1
ns2 IN A 192.168.0.2
s1 IN A 192.168.0.100
ns1.s1 IN A 192.168.0.100
ns2.s1 IN A 192.168.0.100
s2 IN A 192.168.0.200
ns1.s2 IN A 192.168.0.200
ns2.s2 IN A 192.168.0.200

SECOND:
hostname: s1.domain.com
IP: 192.168.0.100
DNS: ns1.s1.domain.com, ns2.s1.domain.com

THIRD:
hostname: s2.domain.com
IP: 192.168.0.200
DNS: ns1.s2.domain.com, ns2.s2.domain.com

I am trying to figure how can I setup one BIND as master and slave for two different masters.
SERVER 1
BIND is MASTER for domain.com zone.
BIND is slave for zones from S1 and S2

How should I configure BIND on those 3 servers to make it work ?
 
Old 02-21-2018, 09:43 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
In your main "options" section section you have to allow query from the slave.
For one of my slave servers I have:
Code:
options {
        directory "/var/named";
        query-source address x.x.x.x;                               <This server's IP address
        allow-query { internaldns; externaldns; };                  <ACLs I created that specify IP addresses
        allow-recursion { internaldns; externaldns; };              <Same ACLs
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        version none;
};
For each domain (zone) you define below main options section you can tell it the type (slave or master) and if a slave the master IP to query:
Code:
zone "ralph.com" {
        type slave;
        file "slaves/ralph.com";
        masters { x.x.x.x; };                      <IP of the master for this zone
        allow-query { any; };
};

zone "billybob.com" {
        type master;
        file "masters/billybob.com";
        allow-query { any; };
};
A good online book for all things DNS:
http://www.zytrax.com/books/dns/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Bind dns master and slave are not synchronized immediately hilou Linux - Server 7 04-06-2016 05:29 AM
bind Views with Master and Slave fantasygoat Linux - Server 6 07-08-2014 12:47 AM
BIND Slave server not getting new records from master..!! GeorgeSKJ Linux - Server 2 07-16-2013 11:58 PM
Bind master slave views wont transfer Daniel304 Linux - Server 5 03-01-2012 08:19 AM
Bind Master > Slave not updating ACDII Linux - Server 6 06-11-2009 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:26 AM.

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