View Single Post
  #2  
Old 10th December 2010, 19:21
Showa Showa is offline
Member
 
Join Date: Sep 2010
Posts: 59
Thanks: 3
Thanked 1 Time in 1 Post
Default

This is the named.conf file on the slave:

//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
options {
listen-on port 53 { any; };
# listen-on-v6 port 53 { ::1; };
listen-on-v6 port 53 { 127.0.0.1;10.0.0.10;10.0.0.15;10.0.0.20;10.0.0.30; 10.0.0.40;10.0.0.50; };
directory "/var/named/chroot/var/named";
dump-file "/var/named/chroot/var/named/data/cache_dump.db";
statistics-file "/var/named/chroot/var/named/data/named_stats.txt";
# memstatistics-file "/var/named/chroot/var/named/data/named_mem_stats.txt";
allow-query { 127.0.0.1;10.0.0.10;10.0.0.15;10.0.0.20;10.0.0.30; 10.0.0.40;10.0.0.50; };
recursion yes;
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
#zone "." IN {
# type hint;
# file "named.root";
#};
acl "mylan" {
127/8; 10.0.0.0/24;
};

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

view "inside" {
match-clients { "mylan"; };
recursion yes;

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

zone "0.0.10.in-addr.arpa" IN {
type slave;
file "yourlan.db";
masters { 10.0.0.10; };
};

zone "amtand.nl" {
type slave;
file "db.amtand.nl.inside";
masters { 10.0.0.10; };
};

};

view "outside" {
match-clients { any; };
recursion no;

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

zone "amtand.nl" {
type slave;
file "db.amtand.nl.outside";
allow-transfer { 192.168.2.10; };
masters { 10.0.0.10; };
};
};

include "/var/named/chroot/etc/rndc.key";
include "/var/named/chroot/etc/named.conf.local";

SELinux and firewall options are both disabled.

Last edited by Showa; 11th December 2010 at 09:57.
Reply With Quote