- 论坛徽章:
- 0
|
原帖由 飘雪心辰 于 2007-3-8 16:08 发表于 18楼
==============================
第一,我急切得想知道你这台机子的操作系统发行版?
第二,
这个named.ca放根DNS地址,如果里面是空的,那么根据你的配置,就算配置文件正确也无法解析外部任何域名!
第三 ...
1.操作系统是 redhat9.0
2.已经在网上从新下载named.ca文件
3.我是新安装的bind-devel-9.2.1-16.i386.rpm bind-utils-9.2.1-16.i386.rpm bind-9.2.1-16.i386.rpm caching-nameserver-7.2-7.noarch.rpm这几个套件。在安装前已经rpm -e bind移除系统自带的BIND。
4.不清楚有无使用CHROOT环境(因是菜鸟)
5.以下是我的一些配置文件~
[root@szpic named]# cat /etc/named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "szpic.com" IN {
type master;
file "szpic.com";
allow-update { none; };
};
zone "0.66.10.in-addr.arpa" IN {
type master;
file "66.0.106.file";
allow-update { none; };
};
include "/etc/rndc.key";
[root@szpic named]# cat /var/named/szpic.com
$TTL 86400
@ IN SOA szpic.com. root.szpic.com.(
2 ; serial
28800 ; refresh
7200 ; retry
604880 ; expiry
86400 ; minimum
)
@ IN NS szpic.com.
localhost IN A 127.0.0.1
www IN A 10.66.0.106
[root@szpic named]# cat /var/named/66.0.106.file
$TTL 86400
@ IN SOA szpic.com. root.szpic.com.(
2 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
@ IN NS szpic.com.
7 IN PTR www.szpic.com.
[root@szpic named]# cat /etc/resolv.conf
domain szpic.com
#domain szpic.com
#nameserver 202.106.0.20
nameserver 10.66.0.106
search localhost
[root@szpic named]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhostdomain localhost
10.66.0.106 szpic.com szpic |
|