LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-26-2013, 05:46 AM   #1
llu
LQ Newbie
 
Registered: Oct 2013
Posts: 2

Rep: Reputation: Disabled
Slave bind9 problem with external views. Debian Wheezy


Hello, i've been fighting with this for the last few days. A few of my entries have external and internal IP's. My internal network is 192.168.1.0/24.

When I nslookup pc1.example.org internally it responds with a 192.168.1.0 address but if I nslookup pc1.example.org externally it still gives me a 192.168.1.0 address.

I'm on Debian Wheezy.



It worked correctly with out using the slave (clients directly connecting to the master) and the external client getting external ips
But changing clients resolv.conf to the slave dns gives me the 192.168.1.0 for the external client again
Help will be much appreciated

master named.conf

Code:
include "/etc/bind/named.conf.options";

acl  internals  { 192.168.1.0/24; localhost; };
acl  externals { !localnets; any; }; 

view "internal" {
match-clients { internals; };
zone "example.org"{
type master;
file "/etc/bind/internals/db.forward.net";
allow-transfer { 192.168.1.2/24; };
};
slave DNS named.conf

Code:
include "/etc/bind/named.conf.options";

acl  internals  { 192.168.1.0/24; localhost; };
acl  externals { !localnets; any; }; 

view "internal" {
match-clients { internals; };
zone "example.org"{
type slave;
file "/etc/bind/internals/db.forward.net";
masters {192.168.1.1/24; };
};

Last edited by llu; 10-29-2013 at 01:33 AM. Reason: making things clearer
 
Old 10-26-2013, 08:06 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi and welcome to LQ,

You need to use TSIG keys to differentiate the 2 zone transfers. See an example here

Regards
 
1 members found this post helpful.
Old 10-27-2013, 04:36 AM   #3
llu
LQ Newbie
 
Registered: Oct 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
It works like a charm thanks!! I was ignoring TSIG simply because i was told it wasn't important :/
 
  


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 Views with Master and Slave fantasygoat Linux - Server 6 07-08-2014 12:47 AM
Bind master slave views wont transfer Daniel304 Linux - Server 5 03-01-2012 08:19 AM
BIND9 slave izghitu Linux - Software 1 12-07-2009 07:56 AM
BIND9 Master Slave Sync problem on Etch 4 servers dholgado Linux - Newbie 1 09-20-2008 09:12 PM
BIND9 slave DNS problem HELP!!! mlu Linux - Networking 2 05-05-2005 06:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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