1 安装dns
yum -y install bind
2 修改配置文件
vi /ect/named.conf
vi named.rfc1912.zones
3 复制配置文件并修改权限
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
4 修改配置文件
vi /var/named/aaa.com.zone
vi /var/named/1.168.192.zone.arpa
5 修改文件
vi /ect/hosts
vi /ect/resolv.conf
6 service named restart
7 ping
原文地址:http://11364577.blog.51cto.com/11354577/1877486