Networking Forums

Networking Forums > Computer Networking > Linux Networking > 2 in 1 different BIND responses for internal and external networks

Reply
Thread Tools Display Modes

2 in 1 different BIND responses for internal and external networks

 
 
Grzegorz Lewandowski
Guest
Posts: n/a

 
      05-10-2007, 09:47 AM
HI!
Im trying to figure out a conf for named (bind v9) to translate addreses
depending from what network he is asked (internal, external).
I googled it and done some changes:

/var/lib/named/etc/named.conf
options {
directory "/";
pid-file "named.pid";
auth-nxdomain yes;
datasize default;
};
acl internals {
192.168.1.0/24;
};

view "internal" {
match-clients { internals; };
recursion yes;
zone "moja.domena.com.pl" {
type master;
file "M/moja.domena.com.pl.zone_internal";
};
zone "localhost" IN {
type master;
file "M/localhost.zone";
allow-update { none; };
allow-transfer { any; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "M/127.0.0.zone";
allow-update { none; };
allow-transfer { any; };
};

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

};

view "external" {
match-clients { any; };
recursion no;
zone "moja.domena.com.pl" {
type master;
file "M/moja.domena.com.pl.zone_external";
allow-transfer { slaves; };
};
zone "localhost" IN {
type master;
file "M/localhost.zone";
allow-update { none; };
allow-transfer { any; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "M/127.0.0.zone";
allow-update { none; };
allow-transfer { any; };
};

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

};

logging {
channel xfer-log {
file "named.log";
print-category yes;
print-severity yes;
print-time yes;
severity info;
};
category xfer-in { xfer-log; };
category xfer-out { xfer-log; };
category notify { xfer-log; };
category parser { xfer-log; };
};

M/moja.domena.com.pl.zone_internal:
@ 1H IN SOA moja.domena.com.pl. mojmail.domena.pl. (
2006090801
6H
2H
2W
2D )
;---------------------------------------------------
boss 86400 IN A 192.168.1.101


M/moja.domena.com.pl.zone_external: same as my previous working conf
(standard conf same answers for int, ext)

after restarting named i see:
May 9 15:41:11 mailer named[425]: loading configuration: not found
May 9 15:41:11 mailer named[425]: exiting (due to fatal error)


And thats pretty much it...
Any suggestions?
Any ideas?

Grzegorz Lewandowski
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Internal to External to Internal Routing. tc Windows Networking 3 10-27-2008 10:55 PM
Internal & External Networks with Active Directory MIchael Trantas Windows Networking 1 06-27-2006 09:30 PM
logging responses from bind Rob Ristroph Linux Networking 1 07-20-2005 12:17 AM
Problems with Bind DNS Views (internal, external) Stefan Sabolowitsch Linux Networking 0 03-10-2005 10:08 AM
Bind an external IP to an internal Interface. Me Windows Networking 2 06-03-2004 04:20 PM



1 2 3 4 5 6 7 8 9 10 11