Showing posts with label dns. Show all posts
Showing posts with label dns. Show all posts

Tuesday, January 13, 2015

Wednesday, May 4, 2011

Give the name to local DNS Server

// Zone file in -> /etc/bind/named.conf add this
zone "cache-sa.local" {
type master;
file "/etc/bind/cache-sa.local.db";
notify no;
};

// In file -> /etc/bind/cache.local.db add this
$TTL 3D
@ IN SOA ns.cache.local. admin.cache.local. (
2010011012
28800
3600
604800
38400 )

cache.local. IN NS ns.cache.local.

ns.cache.local. IN A X.X.X.X

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.