DNS Installation
================
hashout the rootdir in /etc/sysconfig/named
# yum install bind -y
# vi /etc/named.conf
remove everything and just use the lines below (Change IP's accordingly)
options {
listen-on port 53 { any; };
directory "/var/named";
allow-query { any; };
};
zone "database.com" IN {
type master;
file "/var/named/database.com.fwd.zone";
};
zone "2.2.10.in-addr.arpa" IN {
type master;
file "/var/named/named.ha.rev";
};
=================================================
# vi database.com.fwd.zone
$TTL 86400
@ IN SOA dns.database.com. root.localhost (
42 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS dns.database.com.
node1 IN A 10.2.2.1
node2 IN A 10.2.2.2
node1-priv IN A 20.10.10.1
node2-priv IN A 20.10.10.2
node2-vip IN A 10.2.2.5
node1-vip IN A 10.2.2.4
node-scan IN A 10.2.2.7
node-scan IN A 10.2.2.8
node-scan IN A 10.2.2.9
===================
# vi named.ha.rev
=======
$TTL 86400
@ IN SOA dns.database.com. root.dns.database.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
@ IN NS dns.database.com.
1 IN PTR node1.database.com.
2 IN PTR node2.database.com.
4 IN PTR node1-vip.database.com.
5 IN PTR node2-vip.database.com.
7 IN PTR node-scan.database.com.
8 IN PTR node-scan.database.com.
9 IN PTR node-scan.database.com.
==============================================
# chown -R root:named /var/named/
# service named restart
===========================
On all client machines
# vi /etc/resolv.conf
nameserver 192.168.1.254
ConversionConversion EmoticonEmoticon