1.安装bind
yum install bind
2.修改named.conf
listen-on port 53{any;}//接收所有服务器请求
allow-query{any;}//允许递归
3.修改服务器的DNS为当前机器ip
/etc/resolve.conf
servername 192.168.1.188
4.启动named/或重启named
service named start/restart
5.重启网卡
service network restart
网友评论