文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>debian4.0r0_bind9_配置

debian4.0r0_bind9_配置

时间:2007-06-06  来源:fedorac

修改/etc/resolve.conf的内容如下:
search test.net
nameserver 192.168.233.128
  /etc/bind/named.conf // This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options"; // 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";
};
// zone "com" { type delegation-only; };
// zone "net" { type delegation-only; };
// From the release notes:
//  Because many of our users are uncomfortable receiving undelegated answers
//  from root or top level domains, other than a few for whom that behaviour
//  has been trusted and expected for quite some length of time, we have now
//  introduced the "root-delegations-only" feature which applies delegation-only
//  logic to all top level domains, and to the root domain.  An exception list
//  should be specified, including "MUSEUM" and "DE", and any other top level
//  domains from whom undelegated responses are expected and trusted.
// root-delegation-only exclude { "DE"; "MUSEUM"; };
include "/etc/bind/named.conf.local";   zone "test.net" {
type master;
file "/var/cache/bind/home.hosts";
};
zone "233.168.192.in-addr.arpa" {
type master;
file "/var/cache/bind/192.168.233.rev";
};
  home.hosts $TTL 86400
@  IN SOA x.test.net. root.x.test.net. (
     42  ; serial (d. adams)
     3H  ; refresh
     15M  ; retry
     1W  ; expiry
     1D )  ; minimum
         IN NS  x.test.net.
x IN  A 192.168.233.128
xx IN A 192.168.233.3
www IN CNAME x
ftp IN CNAME xx
  192.168.233.rev $TTL 86400 @       IN      SOA     x.test.net. root.x.test.net.  (
                             1997022700 ; Serial
                             28800      ; Refresh
                             14400      ; Retry
                             3600000    ; Expire
                             86400 )    ; Minimum
            IN      NS      x.test.net.
128 IN PTR x.test.net.
3 IN PTR xx.test.net.
  ---------------------------------- /etc/init.d/bind9 start /etc/init.d/bind9 stop /etc/init.d/bind9 restart      
相关阅读 更多 +
排行榜 更多 +
开局一个小兵最新版

开局一个小兵最新版

休闲益智 下载
火柴人联盟2腾讯qq登录版

火柴人联盟2腾讯qq登录版

体育竞技 下载
tsuki odyssey游戏(月兔冒险奥德赛)

tsuki odyssey游戏(月兔冒险奥德赛)

休闲益智 下载