LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-12-2011, 09:41 AM   #1
fantasygoat
Member
 
Registered: Sep 2009
Posts: 119

Rep: Reputation: 17
bind receives NOTIFY for external view but not internal


I have two DNS servers, one local and one remote, and I am trying to get them to talk to each other using views.

The problem I'm having is that the remote server can talk to the local one and receive zone files, but if I update the local server internal view, the remote doesn't receive the update. Here is my config:

local
Quote:
key "external" {
algorithm hmac-md5;
secret "xxxxx";
};

controls {
inet 127.0.0.1 allow { localhost; };
};

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

view "internal" {
match-clients { !key external; 192.168.0.0/16; 172.16.0.0/12; x.x.x.x; };
recursion yes;

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

# Reverse Zones
zone "2.168.192.in-addr.arpa" { type master; file "internal/masters/192.168.2.rev"; };
};

view "external" {
match-clients { key external; any; };
server 192.168.2.21 { keys external; };
recursion no;

zone "example.com" { type master; file "external/masters/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";
remote:
Quote:
key "external" {
algorithm hmac-md5;
secret "xxxxxxx";
};

controls {
inet 127.0.0.1 allow { localhost; };
};

options {
listen-on-v6 { none; };
pid-file "/var/run/named/named.pid";
directory "/var/named";
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; !key external; };
recursion yes;

# Forward Zones
zone "example.com" { type slave; file "internal/slaves/example.com.zone"; masters { y.y.y.y; }; };
};

view "external" {
match-clients { any; key external; };
server y.y.y.y { keys external; };
recursion no;

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

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";
The logs on the local:
Quote:
12-Jul-2011 10:18:01.435 notify: zone example.com/IN/internal: sending notifies (serial 2011071201)
12-Jul-2011 10:18:01.435 notify: zone example.com/IN/external: sending notifies (serial 2011062904)
The logs on the remote:
Quote:
12-Jul-2011 10:18:38.774 notify: client y.y.y.y#4368: view external: received notify for zone 'example.com'
12-Jul-2011 10:18:38.780 notify: client y.y.y.y#4368: view external: received notify for zone '2.168.192.in-addr.arpa': not authoritative
12-Jul-2011 10:18:38.783 notify: client y.y.y.y#4368: view external: received notify for zone 'example.com'
12-Jul-2011 10:18:38.783 general: zone example.com/IN/external: notify from y.y.y.y#4368: zone is up to date
On initial startup, the remote server has no issue receiving the internal view:

Quote:
12-Jul-2011 10:27:15.084 general: zone example.com/IN/internal: Transfer started.
12-Jul-2011 10:27:15.185 xfer-in: transfer of 'example.com/IN' from y.y.y.y#53: connected using z.z.z.z#42340
12-Jul-2011 10:27:15.541 general: zone example.com/IN/internal: transferred serial 2011071201
12-Jul-2011 10:27:15.541 xfer-in: transfer of 'example.com/IN' from x.x.x.x#53: end of transfer
The remote server is sitting behind a firewall on a NATed connection, but I don't think that matters since it's receiving external no problem.

Any clues?
 
Old 07-14-2011, 10:55 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Your initial transfer works because you have an allow-transfer statement. I suspect the notify updates are not working because you don't have an allow-update option.
 
Old 07-15-2011, 06:02 AM   #3
fantasygoat
Member
 
Registered: Sep 2009
Posts: 119

Original Poster
Rep: Reputation: 17
Hmm, why would the external view update then, but not the internal one?
 
Old 05-16-2012, 01:29 PM   #4
craig__1
LQ Newbie
 
Registered: May 2012
Posts: 1

Rep: Reputation: Disabled
Did you ever solve this? I'm seeing something similar here now..

Thanks,
-craig
 
Old 05-16-2012, 01:30 PM   #5
fantasygoat
Member
 
Registered: Sep 2009
Posts: 119

Original Poster
Rep: Reputation: 17
Nope. This is still a problem, which I "solve" by manually restarting all the nameservers.
 
  


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
Bind an internal IP to External IP DigiCrime Linux - Networking 5 11-30-2009 09:56 AM
How to Bind External IP address to Internal IP address tdog89 Linux - Networking 2 06-28-2009 06:21 AM
Bind - view external update denied noir911 Linux - Server 1 09-04-2008 12:28 AM
Can bind 9 (DNS) resolve names based on who's asking?? (internal vs. external clients registering Linux - Networking 3 06-16-2004 07:25 AM

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

All times are GMT -5. The time now is 04:48 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