WEB开发网
开发学院操作系统Linux/Unix Linux下DNS服务器的搭建及区域委派 阅读

Linux下DNS服务器的搭建及区域委派

 2012-08-22 11:34:49 来源:WEB开发网   
核心提示:file "data/named.run";severity dynamic;};};view localhost_resolver {match-clients{ any; };//匹配客户端match-destinations { any; };//目的recursion yes;include
        file "data/named.run";
        severity dynamic;
    };
};
view localhost_resolver {
    match-clients   { any; }; //匹配客户端
    match-destinations { any; }; //目的
    recursion yes;
    include "/etc/named.rfc1912.zones"; // 引用该文件
};
[root@gjp99 etc]# vim named.rfc1912.zones
增加以下信息:
zone "gjp.com" IN {
    type master;
    file "gjp.com.zone"; //要生成该文件
    allow-update { none; };
};
[root@gjp99 chroot]# cd var/named/  //注意准确路径
[root@gjp99 named]# ll
total 36
drwxrwx--- 2 named named 4096 Aug 26 2004 data
-rw-r----- 1 root named 198 Jul 30 2009 localdomain.zone
-rw-r----- 1 root named 195 Jul 30 2009 localhost.zone
-rw-r----- 1 root named 427 Jul 30 2009 named.broadcast
-rw-r----- 1 root named 1892 Jul 30 2009 named.ca
-rw-r----- 1 root named 424 Jul 30 2009 named.ip6.local
-rw-r----- 1 root named 426 Jul 30 2009 named.local
-rw-r----- 1 root named 427 Jul 30 2009 named.zero
drwxrwx--- 2 named named 4096 Jul 27 2004 slaves
[root@gjp99 named]# cp -p localhost.zone gjp.com.zone //-p可以换成-a
[root@gjp99 named]# ll
total 40
drwxrwx--- 2 named named 4096 Aug 26 2004 data
-rw-r----- 1 root named 195 Jul 30 2009 gjp.com.zone
-rw-r----- 1 root named 198 Jul 30 2009 localdomain.zone
-rw-r----- 1 root named 195 Jul 30 2009 localhost.zone
-rw-r----- 1 root named 427 Jul 30 2009 named.broadcast
-rw-r----- 1 root named 1892 Jul 30 2009 named.ca  //根指示文件

上一页  1 2 3 4 5 6 7 8  下一页

Tags:Linux DNS 服务器

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接