Step by Step DNS Configuration On Linux
Step by Step DNS Configuration On Linux
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view localhost_resolver {
match-clients { any; };
match-destinations { 192.168.1.100; };
recursion yes;
include "/etc/named.rfc1912.zones";
};
3. Edit named.rfc1912.zones file. Sample file given below.
zone "." IN {
type hint;
file "named.ca";
};
zone "india.com" IN {
type master;
file "forward.zone";
allow-update { none; };
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "reverse.zone";
allow-update { none; };
};
..
4. Change the permission to the above two files.
chgrp named named.conf
5. Change the directory to below location
cd /var/named/chroot/var/named
cp localdomain.zone forward.zone
cp named.local reverse.zone
6. Modify the forward.zone file. example
$TTL 86400
@
IN
dnc
IN
IN
SOA
NS
A
dnc.india.com. root.dnc.india.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
dnc.india.com.
192.168.1.100
100
IN
IN
SOA
NS
PTR
dnc.india.com.
root.dnc.india.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
dnc.india.com.
dnc.india.com.
$TTL
@
86400
dnc
kracnode1
kracnode2
kracnode1-vip
kracnode2-vip
kracnode-scan
kracnode-scan
kracnode-scan
IN SOA
IN
IN
IN
IN
IN
IN
IN
IN
IN
NS
A
A
A
A
A
A
A
A
dnc.india.com. root.dnc.india.com. (
42
; serial (d. adams)
3H
; refresh
15M
; retry
1W
; expiry
1D )
; minimum
dnc.india.com.
192.168.1.100
192.168.1.50
192.168.1.51
192.168.1.60
192.168.1.61
192.168.1.70
192.168.1.71
192.168.1.72
[
[
OK
OK
]
]
Server:
Address:
192.168.1.100
192.168.1.100#53
Name:
kracnode-scan.india.com
Address: 192.168.1.72
Name:
kracnode-scan.india.com
Address: 192.168.1.70
Name:
kracnode-scan.india.com
Address: 192.168.1.71
search india.com
nameserver 192.168.1.100