Operating on the 192.168.1.101
First, install BIND9:
Yum install-y bind
Second, the configuration bind9:
Cp/etc/named.conf{,.back} // make a backup first
Vim/etc/named.conf
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/8C/77/wKiom1htFpiRC5ZnAAHO7SkRJ54143.png "title=" B.png " alt= "Wkiom1htfpirc5znaaho7skrj54143.png"/>
Third, configure the aaa.com domain:
Cp/etc/named.rfc1912.zones{,.back} // Backup First
Vim/etc/named.rfc1912.zones // to add a forward field
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/8C/74/wKioL1htFrDBzdllAABWxP0ZF1A630.png "title=" B.png " alt= "Wkiol1htfrdbzdllaabwxp0zf1a630.png"/>
Vim/var/named/aaa.com.zone
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/8C/74/wKioL1htFs-yswsOAAECpWT2J7I918.png "title=" B.png " alt= "Wkiol1htfs-yswsoaaecpwt2j7i918.png"/>
Chown:named/var/named/aaa.com.zone
chmod 640/var/named/aaa.com.zone // Modify Repository Permissions
Service named Start // Start the service
Verify:
Dig-t A www.aaa.com @192.168.1.101
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/8C/77/wKiom1htFufj8iBSAAD43xUH7AE943.png "title=" B.png " alt= "Wkiom1htfufj8ibsaad43xuh7ae943.png"/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/8C/74/wKioL1htFxzijyxQAAKHuoJ5AS4662.png "title=" B.png " alt= "Wkiol1htfxzijyxqaakhuoj5as4662.png"/>
The three load balancing of lamp based on NFS: Deploying BIND9