免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1351 | 回复: 0
打印 上一主题 下一主题

Bind9 for solaris9 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-13 20:28 |只看该作者 |倒序浏览

http://www.socialwork.com.hk/learn/dns
http://www.isc.org/products/BIND/
#tar xfz bind-9.3.1rc1.tar.gz
#./configure --prefix=/usr/local/named --enable-threads #--enable-threads开启多线程处理能力
#make
#make install
cd /usr/local/etc
/usr/local/sbin/rndc-cofgen > rndc.conf
# tail -n10 rndc.conf | head -n9 | sed -e s/#\ //g >> rndc.key  
自动在/usr/local/named/etc 生成named,conf文件
启动:/usr/local/named/sbin/named –c /usr/local/named/etc/named.conf &
1、首先运行/usr/sbin/in.named     若没有配置好显示can't open '/etc/named.conf'。
2、/usr/sbin/in.named –v          查看bind的版本号
3、创建/etc/named.conf文件
options {
    directory "/usr/local/named/var/named";
    pid-file "named.pid";
};

zone "." {
    type hint;
    file "named.root";
};

zone "grep.com.cn." {
    type master;
    file "grep.zone";
    notify no;
};

zone "0.168.192.in-addr.arpa." {
    type master;
    file "grep.rzone";
    notify no;
};

zone "0.0.127.in-addr.arpa." {
    type master;
    file "grep.local";
    notify no;
};
4.grep.local文件内容
$TTL    86400
@       IN      SOA     mail.grep.com.cn. root.mail.grep.com.cn. (
                1997022700  ; Serial
                28800    ; Refresh - 3 hours
                14400    ; Retry - 1 hour
                3600000    ; Expire - 1 week
                86400)    ; Minimum - 1 day
        IN    NS     mail.grep.com.cn.
1       IN    PTR    localhost.grep.com.cn.

  grep.zone文件内容
$TTL    86400
@        IN    SOA    mail.grep.com.cn. root.mail.grep.com.cn. (
                1997022700    ; Serial
                28800    ; Refresh - 3 hours
                14400    ; Retry - 1 hour
                3600000    ; Expire - 1 week
                86400)    ; Minimum - 1 day
         IN    NS   mail.grep.com.cn.
localhost       IN       A       127.0.0.1
mail    IN      A       192.168.0.2
  示范grep.rzone文件内容
$TTL    86400
@        IN    SOA mail.grep.com.cn. root.mail.grep.com.cn. (
                1997022700    ; Serial
                28800    ; Refresh - 3 hours
                14400    ; Retry - 1 hour
                3600000    ; Expire - 1 week
                86400)    ; Minimum - 1 day
        IN    NS  mail.grep.com.cn.
2        IN    PTR   mail.grep.com.cn.
   name.root可以下载到




http://www.citrixchina.com/info/14731-1.htm


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/18637/showart_112258.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP