[root@bind ~]# cd /var/named/ [root@bind named]# cp named.localhost tidepharm.cn.zone [root@bind named]# vi tidepharm.cn.zone $TTL 86400 @ IN SOA tidepharm.cn. admin.tidepharm.cn. ( 42 ; serial 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum IN NS ns.tidepharm.cn. ns IN A 192.168.1.250 king IN A 192.168.1.251 king IN A 192.168.1.252 king IN A 192.168.1.253
[root@bind named]# chown root:named tidepharm.cn.zone [root@bind ~]# /etc/init.d/named start [root@bind ~]# chkconfig named on [root@bind ~]# chkconfig named --list named 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@king01 ~]# vi /etc/resolv.conf search tidepharm.cn nameserver 192.168.1.250 [root@king01 ~]# vi /etc/nsswitch.conf hosts: files dns [root@king01 ~]# nslookup king.tidepharm.cn Server: 192.168.1.250 Address: 192.168.1.250#53 Name: king.tidepharm.cn Address: 192.168.1.251 Name: king.tidepharm.cn Address: 192.168.1.252 Name: king.tidepharm.cn Address: 192.168.1.253
[root@king02 ~]# vi /etc/resolv.conf search tidepharm.cn nameserver 192.168.1.250 [root@king02 ~]# vi /etc/nsswitch.conf hosts: files dns [root@king02 ~]# nslookup king.tidepharm.cn Server: 192.168.1.250 Address: 192.168.1.250#53 Name: king.tidepharm.cn Address: 192.168.1.251 Name: king.tidepharm.cn Address: 192.168.1.252 Name: king.tidepharm.cn Address: 192.168.1.253
ORACLE RAC部署实录准备任务(二):BIND(DNS)
原文地址:http://blog.51cto.com/13598811/2088465