+ -
当前位置:首页 → 问答吧 → [分享] 建置DNS - 使用 Bind 9

[分享] 建置DNS - 使用 Bind 9

时间:2005-02-15

来源:互联网

=======================================
@ /var/log/named-query.log ---- query 纪录

@正解档的设定位置,与放置位置因人而异,并没有强制规定
=======================================

A.INSTALL

apt-get install bind9

B.Configure

1.vi /etc/bind/named/named.conf.local

在最后面加上正解档的设定&位置

zone "example.net" {
type master;
file "/etc/bind/zone/example.net";
};

2. vi /etc/bind/named/named.conf.option

在最后面加上

forwarders {
168.95.1.1;
168.192.192.1;
};
auth-nxdomain yes; # conform to RFC1035 <-- 从 no 改成 yes
logging {
channel "querylog" { file "/var/log/named-query.log"; print-time yes; };
category queries { querylog; };
};

3.mkdir /etc/bind/zone
vi /etc/bind/zone/example.net

$TTL 86400
@ IN SOA example.net. root.example.net. (
20050215 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
86400 ) ; Negative Cache TTL
;
@ IN NS example.net.
ns IN A 220.135.54.25
jaric IN A 220.135.54.25
test IN A 220.135.54.25


4.touch /var/log/named-query.log
chown bind.bind /var/log/named-query.log

5. /etc/init.d/bind9 restart

作者: Jaric   发布时间: 2005-02-15

我比较想知怎么用
thanks

作者: carlkyo   发布时间: 1970-01-01