LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-12-2011, 03:06 PM   #1
fantasygoat
Member
 
Registered: Sep 2009
Posts: 119

Rep: Reputation: 17
bind Views with Master and Slave


I have bind configured with Internal and External views, but the slave server is transferring only the Internal zone files for both Internal and External - a diff shows no difference, and the log shows the same serial number:

Quote:
12-Apr-2011 15:56:55.016 general: zone example.com/IN/INTERNAL: Transfer started.
12-Apr-2011 15:56:55.017 xfer-in: transfer of 'example.com/IN' from 172.16.0.10#53: connected using 172.16.0.11#43425
12-Apr-2011 15:56:55.025 general: zone example.com/IN/INTERNAL: transferred serial 2011022206
12-Apr-2011 15:56:55.027 xfer-in: transfer of 'example.com/IN' from 172.16.0.10#53: end of transfer
12-Apr-2011 15:56:55.517 general: zone example.com/IN/EXTERNAL: Transfer started.
12-Apr-2011 15:56:55.518 xfer-in: transfer of 'example.com/IN' from 172.16.0.10#53: connected using 172.16.0.11#59096
12-Apr-2011 15:56:55.527 general: zone example.com/IN/EXTERNAL: transferred serial 2011022206
12-Apr-2011 15:56:55.527 xfer-in: transfer of 'example.com/IN' from 172.16.0.10#53: end of transfer
Here's the config on the master:

Quote:
options {
listen-on-v6 { none; };
pid-file "/var/run/named/named.pid";
directory "/var/named";
allow-transfer { 172.16.0.0/12; };
notify explicit;
version none;
hostname none;
server-id none;
max-ncache-ttl 3;
recursive-clients 10000;
};

view INTERNAL {
match-clients { 172.16.0.0/12; 192.168.0.0/16; 127.0.0.1; };
recursion yes;
also-notify { 172.16.0.11; };

zone "." IN {
type hint;
file "named.root";
};

# Forward zones
zone "example.com" {
type master;
file "internal/example.com.zone";
};

# Reverse zones
zone "0.16.172.in-addr.arpa" {
type master;
file "internal/172.16.0.rev";
};
};

view EXTERNAL {
match-clients { any; };
recursion no;
also-notify { 172.16.0.11; };

zone "example.com" {
type master;
file "external/example.com.zone";
};
};

logging {
channel logfile {
file "/var/log/named.log" versions 3 size 1m;
print-time yes;
print-category yes;
};

category default {logfile;};
category lame-servers { null; };
category notify { logfile; };
};

include "/etc/rndc.key";
And the slave config:

Quote:
options {
listen-on-v6 { none; };
pid-file "/var/run/named/named.pid";
directory "/var/named";
allow-transfer { 172.16.0.0/12; };
notify explicit;
version none;
hostname none;
server-id none;
max-ncache-ttl 3;
recursive-clients 10000;
};

view INTERNAL {
match-clients { 172.16.0.0/12; 192.168.0.0/16; 127.0.0.1; };
recursion yes;

zone "." IN {
type hint;
file "named.root";
};

# Forward zones
zone "example.com" {
type slave;
file "internal/example.com.zone";
masters { 172.16.0.10; };
};

# Reverse zones
zone "0.16.172.in-addr.arpa" {
type slave;
file "internal/172.16.0.rev";
masters { 172.16.0.10; };
};
};

view EXTERNAL {
match-clients { any; };
recursion no;

zone "example.com" {
type slave;
file "external/example.com.zone";
masters { 172.16.0.10; };
};
};

logging {
channel logfile {
file "/var/log/named.log" versions 3 size 1m;
print-time yes;
print-category yes;
};

category default {logfile;};
category lame-servers { null; };
category notify { logfile; };
};

include "/etc/rndc.key";
What am I missing in the config so the slave server properly receives updates from the master for both views?
 
Old 04-12-2011, 05:08 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,908

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Hi,

Have a look here

Regards
 
1 members found this post helpful.
Old 04-12-2011, 05:19 PM   #3
fantasygoat
Member
 
Registered: Sep 2009
Posts: 119

Original Poster
Rep: Reputation: 17
That was exactly the solution I was looking for. Thanks!
 
Old 04-30-2013, 07:35 AM   #4
F1Linux
LQ Newbie
 
Registered: Apr 2013
Location: United Kingdom
Distribution: CentOS
Posts: 5

Rep: Reputation: Disabled
For those with further questions on configuring BIND for Split views, I put together a comprehensive HowTo which can be found here:

http://blog.f1linux.com/2013/03/21/bind-9-views-howto/

Hope this helps somebody out-

Terrence
Twitter: @F1Linux
 
Old 07-07-2014, 02:52 AM   #5
shahzaibcb
LQ Newbie
 
Registered: Dec 2013
Posts: 28

Rep: Reputation: Disabled
Same issue !!

I am stuck with the same problem, internal and external zones contains the same content and your provided link is no more working. :-(
 
Old 07-07-2014, 04:26 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,908

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Quote:
Originally Posted by shahzaibcb View Post
I am stuck with the same problem, internal and external zones contains the same content and your provided link is no more working. :-(
It's moved here

Regards
 
1 members found this post helpful.
Old 07-08-2014, 12:47 AM   #7
shahzaibcb
LQ Newbie
 
Registered: Dec 2013
Posts: 28

Rep: Reputation: Disabled
Gotchaa Thanks.
 
  


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 Master > Slave not updating ACDII Linux - Server 6 06-11-2009 04:24 PM
Unable to synchronize BIND 9 Master Slave Servers dholgado Linux - Server 1 09-19-2008 12:10 PM
DNS BIND Zone transfer fails from Master to Slave ALInux Linux - Networking 0 08-28-2007 05:19 AM
BIND Slave server never gets zone transfer from master. HELP!! quackking Linux - Networking 2 08-30-2006 12:54 PM
Tranferring Zones, Master to Slave, DNS - BIND newpylong Linux - Networking 0 09-02-2004 08:01 AM


All times are GMT -5. The time now is 08:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration