1.安装bind-9.8.2bind-chroot两个安装包

2.Vim /etc/named.conf(以前是named.caching-server现在是/etc/named.conf

3.三个”any”

CentOS 6.4 DNS_redhat4.Vim /etc/named.rfc1912.zones


zone “localhost”

CentOS 6.4 DNS_centos_02

复制粘贴到最后


zone“1.0.0.127.in-addr.arpa”

CentOS 6.4 DNS_dns_03

复制粘贴到最后

5.范例:

CentOS 6.4 DNS_redhat_04

6.编辑正向反向文件

7.Vim/var/named/named.localhost文件,修改如下:

CentOS 6.4 DNS_dns_05

8.8Vim/var/named/named.loopback文件,修改如下:

CentOS 6.4 DNS_rhel6.4 dns_06

9.启动dnsservice namedrestart

10.客户端测试。

CentOS 6.4 DNS_rhel6.4 dns_07


CentOS 6.4 DNS_centos_08