存档

文章标签 ‘named.conf’

Centos6.3下DNS服务器的安装和配置

2013年8月9日 没有评论

一.安装DNS Server

yum -y install bind*
yum -y install bind-utils  //nslookup 后面会用到
/etc/init.d/iptables stop //关闭防火墙,或者选择永久关闭防火墙chkconfig  iptables off

你也可以选择打开防火墙53端口,记住TCP和UDP都需要

vim /etc/sysconfig/iptables

-A INPUT -m state --state NEW -m tcp -p tcp --dport 53 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 53 -j ACCEPT

安装好之后查看named 服务状态

/etc/init.d/named status

rndc: neither /etc/rndc.conf  nor /etc/rndc.key was found

named-sdb 已停

发现缺失文件错误,解决方法如下:输入 阅读全文…