DNS Config VP-DNS

download DNS Config VP-DNS

of 3

description

k

Transcript of DNS Config VP-DNS

#create a dns machine#machine hostname:vp-dns#machine ip : 192.168.1.200#os - redhat 5.7 32 bit1) Install the BIND and bind-chroot softwarerpm -ivh bind-*.rpmrpm -q bind-chroot2) Check the service statusservice named status3) Configure the DNS settingsA] Global DNS Settings[root@vp-dns ~]# cat /var/named/chroot/etc/named.confoptions{ directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; listen-on port 53 { any; };};zone "oraclexpert.com"{ type master; file "oraclexpert.com.fwd.zone";};zone "localhost"{ type master; file "localhost.fwd.zone";};zone "1.168.192.in-addr.arpa"{ type master; file "192.168.1.rev.zone";};zone "0.0.127.in-addr.arpa"{ type master; file "localhost.rev.zone";};zone "." in {type hint;file "/dev/null";};B] Domain Specific Settings for forward lookup zone[root@vp-dns ~]# cat /var/named/chroot/var/named/oraclexpert.com.fwd.zone$TTL 1D@ IN SOA vp-dns.oraclexpert.com. root.localhost ( 2011071500 ; serial 8H ; refresh 4H ; retry 1W ; expiry 1D ) ; minimum@ IN NS vp-dns.oraclexpert.com.localhost IN A 127.0.0.1vp-dns IN A 192.168.1.200vp-openfiler IN A 192.168.1.201vp-alpha IN A 192.168.1.202vp-beta IN A 192.168.1.203vp-gamma IN A 192.168.1.204vp-alpha-vip IN A 192.168.1.205vp-beta-vip IN A 192.168.1.206vp-gamma-vip IN A 192.168.1.207group00-scan IN A 192.168.1.10 IN A 192.168.1.20 IN A 192.168.1.30$ORIGIN group00grid.oraclexpert.com.@ IN NS group00-gns.group00grid.oraclexpert.com. IN NS dns.oraclexpert.com.group00-gns IN A 192.168.1.40; glue record C] Domain Specific Settings for reverse lookup zone[root@vp-dns ~]# cat /var/named/chroot/var/named/192.168.1.rev.zone$TTL 1D@ IN SOA vp-dns.oraclexpert.com. root.localhost. ( 2011071500 ; serial 8H ; refresh 4H ; retry 1W ; expiry 1D ) ; minimum@ IN NS vp-dns.oraclexpert.com.200 IN PTR vp-dns.oraclexpert.com.201 IN PTR vp-openfiler.oraclexpert.com.202 IN PTR vp-alpha.oraclexpert.com.203 IN PTR vp-beta.oraclexpert.com.204 IN PTR vp-gamma.oraclexpert.com.205 IN PTR vp-alpha-vip.oraclexpert.com.206 IN PTR vp-beta-vip.oraclexpert.com.207 IN PTR vp-gamma-vip.oraclexpert.com.10 IN PTR group00-scan20 IN PTR group00-scan30 IN PTR group00-scan[root@vp-dns ~]# D] Domain Specific Settings for forward lookup zone[root@vp-dns ~]# cat /var/named/chroot/var/named/localhost.fwd.zone$TTL 1D@ IN SOA @ root ( 2011071500 ; serial 8H ; refresh 4H ; retry 1W ; expiry 1D ) ; minimum IN NS @ IN A 127.0.0.1E] Domain Specific Settings for reverse lookup zone[root@vp-dns ~]# cat /var/named/chroot/var/named/localhost.rev.zone$TTL 1D@ IN SOA localhost. root.localhost. ( 2011071500 ; serial 8H ; refresh 4H ; retry 1W ; expiry 1D ) ; minimum IN NS localhost.1 IN PTR localhost.F] Configure Resolution for the DNS Server[root@vp-dns ~]# cat /etc/resolv.confsearch oraclexpert.com group00grid.oraclexpert.comnameserver 192.168.1.200options timeout: 1options timeout: 1 G] Disable firewall and allow clients to connect to the DNS serverchkconfig --levels 0123456 iptables offservice iptables stopservice named startchkconfig --levels 12345 named on