内网DNS配置

yum install bind bind-chroot
[root@w named]# cat /etc/named.conf
options {
        directory       "/var/named";          
};

zone "." IN {
        type hint;
        file "named.ca";
};

zone "localhost" IN {
        type master;
        file "named.localhost";
};

zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "named.loopback";

};
zone "sxlfxx.cn" IN {
        type master;
        file "sxlfxx.cn.zone";
};


[root@w named]# cat /var/named/sxlfxx.cn.zone
$TTL    86400
znke.cn.        IN      SOA     ns1.sxlfxx.cn.    admin.sxlfxx.cn.  (
                                2014121001
                                1H
                                5M
                                2D
                                6H )
                IN      NS      ns1
                IN      MX  10  mail
ns1             IN      A       192.168.3.5
mail            IN      A       192.168.3.5
www             IN      A       182.92.166.130
test            IN      A       114.112.96.62
ftp             IN      CNAME   www


如果不行...复制这两个配置文件到
/var/named/chroot/etc/named.conf     
/var/named/chroot/var/named/sxlfxx.cn.zone  


你可能感兴趣的:(dns)