Chinaunix首页 | 论坛 | 博客
  • 博客访问: 81258
  • 博文数量: 46
  • 博客积分: 985
  • 博客等级: 准尉
  • 技术积分: 450
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-20 22:56
文章分类

全部博文(46)

文章存档

2011年(46)

我的朋友

分类: LINUX

2011-01-25 09:05:51

安装略

修改/var/named/chroot/etc/named.conf
==================================
options {
        directory "/var/named";
 forwarders {
 202.106.0.20;202.106.46.151;#本地ISP DNS ip
         };
           };
zone "test.com"{
        type master;
        file "test.com.zone";
                };
zone "18.168.192.in-addr.arpa"{
        type    master;
        file    "test.com.192.168.18";
};

==================================
建立正向反向2个文件
/var/named/chroot/var/named下建立2个文件
test.com.zone #正向文件
test.com.192.168.  #反向文件

正向文件模板

/var/named/chroot/var/named/test.com.zone

模板/usr/share/doc/bind-9x/sample/var/named/localhost.zone
================================
$TTL    86400
@               IN SOA  @       root (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                IN NS           test.com.
test1  IN A 192.168.18.22

反向文件模板

$TTL    86400
@               IN SOA  @       root (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                IN NS           @
                IN A            127.0.0.1
                IN AAAA         ::1

 

 

阅读(631) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~