LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 600|回复: 3

如何把internic的dns数据缓存到本地

[复制链接]
发表于 2004-6-8 15:35:42 | 显示全部楼层 |阅读模式
我建立了dns服务器,配置文件如下
bupticet-222:/etc/bind# cat /etc/bind/named.conf
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//

options {
        directory "/var/cache/bind";

        // If there is a firewall between you and nameservers you want
        // to talk to, you might need to uncomment the query-source
        // directive below.  Previous versions of BIND always asked
        // questions using port 53, but BIND 8.1 and later use an unprivileged
        // port by default.

        // query-source address * port 53;

        // If your ISP provided one or more IP addresses for stable
        // nameservers, you probably want to use them as forwarders.
        // Uncomment the following block, and insert the addresses replacing
        // the all-0's placeholder.

         forwarders {
                202.106.46.151;
                202.112.10.36;
         };

        auth-nxdomain no;    # conform to RFC1035

};

// prime the server with knowledge of the root servers
zone "." {
        type hint;
        file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
        type master;
        file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
        type master;
        file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
        type master;
        file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
        type master;
        file "/etc/bind/db.255";
};

// add entries for other zones below here

bupticet-222:/etc/bind# ls
db.0  db.127  db.255  db.local  db.root  named.conf  rndc.key
bupticet-222:/etc/bind#

发现有下面的资料:
建议从 Internic 下载最新的版本。该文件可通过匿名 ftp 从 ftp.rs.internic.net 下载,在 domain 目录下,文件名为 named.root。注意该文件下载后要拷贝到 named 的工作目录并重命名成 named.boot 中指定的文件名,本文中为 db.cache。



系统是debian woody+bind9.

问题是:
1、 我该如何设置dns的缓存文件,从ftp.rs.internic.net下载named.root保存到/var/cache/bind后该如何命名?
2、如果某些域名变更了,本地缓存的文件会自动更新吗?
 楼主| 发表于 2004-6-10 21:41:08 | 显示全部楼层
up
发表于 2004-6-11 14:18:28 | 显示全部楼层
不清楚,呵呵,公网上辅的dns服务器地址和主的dns服务器地址内容要一样,好象是自动更新同步的 , 更新后将文件内容保存起来行吗 ?
 楼主| 发表于 2004-6-11 19:02:54 | 显示全部楼层
我的dns服务器已经开了很久了,但/var/cache/bind始终是空的,不知道怎么才能保存呀。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表