[[email protected] ~]# yum install bind[[email protected] ~]# vi /etc/named.conf//// named.conf//// provided by red hat bind package to configure the isc bind named (8) dns// server as a caching only nameserver (as a localhost dns resolver only).//// see /usr/share/doc/bind*/sample/ for example named configuration files.//options { listen-on port 53 { any; }; listen-on-v6 port 53 { ::1; }; directory "/var/named"; dump-file "/var/named /data/cache_dump.db "; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; allow-query { any; }; recursion yes; dnssec-enable no; dnssec-validation no; /* Path to ISC DLV key */ bindkeys-file "/etc/named.iscdlv.key"; managed-keys-directory "/var/named/dynamic";}; logging { channel default_debug { file "Data/named.run"; severity dynamic; };}; zone "." IN { type hint; file "named.ca";}; zone "tidepharm.cn" IN { type master; file "Tidepharm.cn.zone";}; include "/etc/named.rfc1912.zones";include "/etc/named.root.key";
[[email protected] ~]# cd /var/named/[[email protected] named]# cp Named.localhost tidepharm.cn.zone[[email protected] named]# vi tidepharm.cn.zone$ttl 86400@ IN SOA tidepharm.cn. admin.tidepharm.cn. ( 42 ; serial 3h ; refresh 15m ; retry 1W ; expiry 1d&nbSP;) ; minimum IN NS ns.tidepharm.cn.ns IN A 192.168.1.250king IN A 192.168.1.251king IN A 192.168.1.252king in a 192.168.1.253
[Email protected] named]# chown root:named tidepharm.cn.zone[[email protected] ~]#/etc/init.d/named Start[[email Protected] ~]# chkconfig named On[[email protected] ~]# chkconfig named--listnamed 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[Email protected] ~]# vi/etc/resolv.conf search tidepharm.cnnameserver 192.168.1.250[[email protected] ~]# VI/ETC/NSSW itch.conf hosts:files dns[[email protected] ~]# nslookup king.tidepharm.cnserver:192.168.1.250address: 192.168.1.250#53name:king.tidepharm.cnaddress:192.168.1.251name:king.tidepharm.cnaddress:192.168.1.252name:k ing.tidepharm.cnaddress:192.168.1.253
[Email protected] ~]# vi/etc/resolv.conf search tidepharm.cnnameserver 192.168.1.250[[email protected] ~]# VI/ETC/NSSW itch.conf hosts:files DNS [[email protected] ~]# nslookup king.tidepharm.cnserver:192.168.1.250address: 192.168.1.250#53name:king.tidepharm.cnaddress:192.168.1.251name:king.tidepharm.cnaddress:192.168.1.252name: king.tidepharm.cnaddress:192.168.1.253
ORACLE RAC Deployment Record preparation task (ii): BIND (DNS)