安装Bind 9.4.2过程实录

红薯 发布于 2008/10/05 17:33
阅读 458
收藏 0

环境: RedHat Enterprise Linux 5.0 AS

# wget http://ftp.isc.org/isc/bind9/9.4.2/bind-9.4.2.tar.gz
# tar zxvf bind-9.4.2.tar.gz
# cd bind-9.4.2
# ./configure --prefix=/usr/local/named --with-threads --disable-openssl-version-check
# make
# make install
# cd /usr/local/named/etc
# ../sbin/rndc-confgen > rndc.conf
# tail -10 rndc.conf | head -9 | sed s/#\ //g > named.conf

options {
    directory "/usr/local/named/etc";
};

key "rndc-key" {
    algorithm hmac-md5;
    secret "6NZg3Pzsz/HW36sTq4T6qg==";
};

controls {
    inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "rndc-key"; };
};

zone "71way.com" IN {
    type master;
    file "71way.zone";
    allow-update{none;};
};

$TTL 3600 ;
@          IN SOA  ns2.71way.com. admin.71way.com. (
                   1053891162 ; serial
                   18000      ; refresh (5 hours)
                   3600       ; retry   (1 hour)
                   2100000    ; expire  (3 weeks 3 days 7 hours 20 minutes)
                   3600       ; minimum (1 hour)
                   )
           IN NS         ns1.71way.com.
           IN NS         ns2.71way.com.
           IN A          219.136.242.41
           IN MX         5 mail.71way.com.

*          IN CNAME  e
e          IN A      219.136.242.41
www        IN A      219.136.242.41
ns1           IN A      219.136.242.40
ns2           IN A      219.136.242.112
mail       IN A      219.136.242.40

加载中
返回顶部
顶部