Thursday, April 7, 2011

Cache DNS config

Refer :

File named.conf.options
options {
directory "/var/cache/bind";
forwarders {
x.x.x.x; DNS IP
x.x.x.x; DNS 2 IP
};

auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};

File named.conf
zone "domain.local" {
type master;
file "/etc/bind/zones/domain.local.db";
notify no;
};

zone "x.x.x.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.x.x.x.in-addr.arpa";
notify no;
};

File /etc/bind/zones/domain.local.db
$TTL 3D
@ IN SOA ns.domain.local. admin.domain.local. (
2010011001
28800
3600
604800
38400
);
domain.local. IN NS ns.domain.local.
ns IN A x.x.x.x
abc IN A x.x.x.x

File /etc/bind/zones/rev.x.x.x.in-addr.arpa
$TTL 3D
@ IN SOA ns.domain.local. admin.domain.local. (
201001101
28800
604800
604800
86400
)
IN NS ns.domain.local.

0 comments:

Post a Comment