1 安装dns
yum -y install bind
vi /ect/named.conf
vi named.rfc1912.zones
cp /var/named/named.localhost /var/named/aaa.com.zone
cp /var/named/named.localhost /var/named/1.168.192.zone.arpa
chmod 777 /var/named/aaa.com.zone
chmod 777 /var/named/1.168.192.zone.arpa
vi /var/named/aaa.com.zone
vi /var/named/1.168.192.zone.arpa
vi /ect/hosts
vi /ect/resolv.conf
6 service named restart
7 ping