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

由 silver810212 在 06-08-2004 15:35 发表:

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

我建立了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#

发现有下面的资料:

> quote: > > * * * > > 建议从 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、如果某些域名变更了,本地缓存的文件会自动更新吗?


生命不息,学习不止!

你帮助我,我也帮助你。

MSN:[email protected]


由 silver810

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus