QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1554|回复: 0

[求助]suse10.1 配置bind问题

[复制链接]
发表于 2006-12-4 19:31:26 | 显示全部楼层 |阅读模式
# rpm -qa|grep bind
kdebindings3-python-3.5.1-19
bind-chrootenv-9.3.2-17
bind-libs-9.3.2-17
yast2-perl-bindings-2.13.4-17
yast2-pkg-bindings-2.13.68-4
samba-winbind-3.0.22-11
bind-utils-9.3.2-17
ypbind-1.19.1-12
bind-9.3.2-17

# ls -l /etc/named.conf
-rw-r--r-- 1 root root 342 2006-12-04 18:44 /etc/named.conf

# ls -l /var/named
-rw-r--r-- 1 root root 217 2006-12-04 18:42 3.16.172.in-addr.arpa
-rw-r--r-- 1 root root 257 2006-12-04 18:42 hackbase.com.zone
-rw-r--r-- 1 root root 2499 2006-12-04 18:42 named.ca


# cat named.conf
options {
directory "/var/named";
};
controls{
inet 127.0.0.1 allow { 127.0.0.1;} keys {"rndckey";};
};

zone "." IN {
type hint;
file "named.ca";
};

zone "hackbase.com" IN {
type master;
file "hackbase.com.zone";
};

zone "3.16.172.in-addr.arpa" IN {
type master;
file "3.16.172.in-addr.arpa";
};
include "/etc/rndc.key";



# cat 3.16.172.in-addr.arpa
$TTL 86400
@ IN SOA localhost. root.hackbase.com. (
20040802
28800
14400
3600000
86400
)
NS localhost.
123 IN PTR www.hackbase.com.
124 IN PTR mail.hackbase.com.
125 IN PTR ftp.hackbase.com.




# cat hackbase.com.zone
$TTL 86400
$ORIGIN hackbase.com.
@ IN SOA localhost. root.hackbase.com. (
20040802
28800
14400
3600000
86400
)
NS localhost.
MX 10 mail.hackbase.com.
www IN A 172.16.3.123
mail IN A 172.16.3.124
ftp IN A 172.16.3.125
web CNAME www





# cat named.ca
; This file holds the information on root name servers needed to
; initialize cache of Internet domain name servers
; (e.g. reference this file in the "cache . <file>"
; configuration file of BIND domain name servers).
;
; This file is made available by InterNIC
; under anonymous FTP as
; file /domain/named.cache
; on server FTP.INTERNIC.NET
;
; last update: Nov 5, 2002
; related version of root zone: 2002110501
;
;
; formerly NS.INTERNIC.NET
;
. 3600000 IN NS A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4
;
; formerly NS1.ISI.EDU
;
. 3600000 NS B.ROOT-SERVERS.NET.
B.ROOT-SERVERS.NET. 3600000 A 128.9.0.107
;
; formerly C.PSI.NET
;
. 3600000 NS C.ROOT-SERVERS.NET.
C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12
;
; formerly TERP.UMD.EDU
;
. 3600000 NS D.ROOT-SERVERS.NET.
D.ROOT-SERVERS.NET. 3600000 A 128.8.10.90
;
; formerly NS.NASA.GOV
;
. 3600000 NS E.ROOT-SERVERS.NET.
E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10
;
; formerly NS.ISC.ORG
;
. 3600000 NS F.ROOT-SERVERS.NET.
F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241
;
; formerly NS.NIC.DDN.MIL
;
. 3600000 NS G.ROOT-SERVERS.NET.
G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4
;
; formerly AOS.ARL.ARMY.MIL
;
. 3600000 NS H.ROOT-SERVERS.NET.
H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53
;
; formerly NIC.NORDU.NET
;
. 3600000 NS I.ROOT-SERVERS.NET.
I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17
;
; operated by VeriSign, Inc.
;
. 3600000 NS J.ROOT-SERVERS.NET.
J.ROOT-SERVERS.NET. 3600000 A 192.58.128.30
;
; housed in LINX, operated by RIPE NCC
;
. 3600000 NS K.ROOT-SERVERS.NET.
K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129
;
; operated by IANA
;
. 3600000 NS L.ROOT-SERVERS.NET.
L.ROOT-SERVERS.NET. 3600000 A 198.32.64.12
;
; housed in Japan, operated by WIDE
;
. 3600000 NS M.ROOT-SERVERS.NET.
M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33
; End of File




/etc/named.conf , 3.16.172.in-addr.arpa , hackbase.com.zone , named.ca 这几个文件在RH9上bind 9.2可以正常启动DNS。


不能正常启动!
# service named start
Starting name server BIND /etc/named.conf:2: change directory to '/var/named' failed: file not found

/etc/named.conf:2: parsing failed
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 06:26 , Processed in 0.032934 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表