在RH AS 3上完全编译安装BIND-9.2.3[1]

[入库:2005年9月19日] [更新:2007年3月24日]

本文简介:


[code:1:d8aa9110ce]
本人声明:

如需转载请保留下面的信息:
author: llzqq
mail:; llzqq@126.com
from:; www.chinaunix.net

安装BIND9:

# tar zxvf bind-9.2.3.tar.gz
# cd bind-9.2.3
# ./configure
--prefix=/usr/local/named 
--disable-ipv6
# make 
# make install

建立BIND用户:

# groupadd bind
# useradd -g bind -d /usr/local/named -s /sbin/nologin bind

创建配置文件目录:

# mkdir –p /usr/local/named/etc 
# chown bind:;bind /usr/local/named/etc 
# chmod 700 /usr/local/named/etc

创建主要的配置文件:

# vi /usr/local/named/etc/named.conf
===========================named.conf=======================

acl "trust-lan" { 127.0.0.1/8; 192.168.0.0/16;};
options {
         directory "/usr/local/named/etc/";
pid-file "/var/run/named/named.pid";
version "0.0.0";
datasize 40M;
allow-transfer {
"trust-lan";};
recursion yes;
allow-notify {
"trust-lan";
};
allow-recursion {
"trust-lan";
};
auth-nxdomain no;
forwarders {
202.99.160.68;
202.99.168.8;};
};
logging {
        channel warning
        { file "/var/log/named/dns_warnings" versions 3 size 1240k;
        severity warning;
        print-category yes;
        print-severity yes;
        print-time yes;
        };
        channel general_dns
        { file "/var/log/named/dns_logs" versions 3 size 1240k;
        severity info;
        print-category yes;
        print-severity yes;
        print-time yes;
        };
        category default { warning; };
        category queries { general_dns; };
};
zone "." {
        type hint;
        file "named.root";
};

zone "0.0.127.IN-ADDR.ARPA" {
        type master;
        file "localhost";
};

zone "home.com" {
        type slave;
        file "home.com";
        masters {
                192.168.0.1;
        };
};

zone "0.168.192.in-addr.arpa" {
        type slave;
        file "0.168.192.in-addr";
        masters {
                192.168.0.1;
        };
};
=========================named.conf==========================

# vi /usr/local/named/etc/home.com

============================ home.com ==========================
$TTL 86400
$ORIGIN home.com.
@       IN      SOA     redhat.home.com. root.home.com (
        2001111601 ; serial
        28800 ; refresh

本文关键:在RH AS 3上完全编译安装BIND-9.2.3
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top