TXT

Bind9 for solaris9

By Alan Miller,2014-10-05 16:42
6 views 0
Bind9 for solaris9

#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可以下载到

Report this document

For any questions or suggestions please email
cust-service@docsford.com