######MASTER NAMED.CONF#########
// to talk to, you might need to uncomment the query-source
// directive below. Previous versions of BIND always asked
// questions using port 53, but BIND 8.1 and later use an unprivileged
// port by default.
// query-source address * port 53;
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
1**********;
2*********;
2***********;
*******;
};
};
// reduce log verbosity on issues outside our control
logging {
category lame-servers { null; };
category cname { null; };
};
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/named/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "1.168.192.in-addr.arpa" {
type master;
file "/etc/named/db.1.168.192.val";
allow-transfer { 192.168.1.38; };
};
zone "2.168.192.in-addr.arpa" {
type master;
file "/etc/named/db.2.168.192.man";
allow-transfer { 192.168.1.38; };
};
zone "3.168.192.in-addr.arpa" {
type master;
file "/etc/named/db.3.168.192.xand";
allow-transfer { 192.168.1.38; };
};
// add entries for other zones below here
zone "black.com" {
type master;
file "/etc/named/db.black";
allow-transfer { 192.168.1.38; };
};
#####SLAVE NAMED.CONF######
options {
directory "/var/cache/named";
// If there is a firewall between you and nameservers you want
// to talk to, you might need to uncomment the query-source
// directive below. Previous versions of BIND always asked
// questions using port 53, but BIND 8.1 and later use an unprivileged
// port by default.
query-source address * port 53;
allow-notify { 192.168.1.59; };
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
198*******;
2*********;
2******;
2**********;
};
};
// reduce log verbosity on issues outside our control
logging {
category lame-servers { null; };
category cname { null; };
};
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/named/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "1.168.192.in-addr.arpa" {
type slave;
file "/etc/named/db.1.168.192.val";
masters { 192.168.1.59; };
};
zone "2.168.192.in-addr.arpa" {
type slave;
file "/etc/named/db.2.168.192.man";
masters { 192.168.1.59; };
};
zone "3.168.192.in-addr.arpa" {
type slave;
file "/etc/named/db.3.168.192.xand";
masters { 192.168.1.59; };
};
// add entries for other zones below here
zone "black.com" {
type slave;
file "/etc/named/db.black";
masters { 192.168.1.59; };
};