分类: LINUX
2011-01-25 09:05:51
安装略
修改/var/named/chroot/etc/named.conf
==================================
options {
directory "/var/named";
forwarders {
202.106.0.20;202.106.46.151;#本地ISP DNS ip
};
};
zone "test.com"{
type master;
file "test.com.zone";
};
zone "18.168.192.in-addr.arpa"{
type master;
file "test.com.192.168.18";
};
==================================
建立正向反向2个文件
/var/named/chroot/var/named下建立2个文件
test.com.zone #正向文件
test.com.192.168. #反向文件
正向文件模板
/var/named/chroot/var/named/test.com.zone
模板/usr/share/doc/bind-9x/sample/var/named/localhost.zone
================================
$TTL 86400
@ IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS test.com.
test1 IN A 192.168.18.22
反向文件模板
$TTL 86400
@ IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS @
IN A 127.0.0.1
IN AAAA ::1