- 论坛徽章:
- 0
|
各位DX,小弟在配置DNS服务的时候出现了一个问题,现在不知道在哪里配置出现问题,希望各位能给点意见
系统是suse10,bind9.3.2 suse的ip是192.168.0.110,web服务器的ip地址是192.168.0.49,域名为www.pim.com.la,需要通过ip地址192.168.0.49来解析www.pim.com.la这个地址,现配置文件如下:
/etc/named.conf配置文件如下:
zone "0.168.192.in-addr.arpa" in {
type master;
file "192.168.0.zone";
};
# Include the meta include file generated by createNamedConfInclude. This
# includes all files as configured in NAMED_CONF_INCLUDE_FILES from
# /etc/sysconfig/named
include "/etc/named.conf.include";
logging {
category default { log_syslog; };
channel log_syslog { syslog; };
};
#zone "example.com" in {
# allow-transfer { any; };
# file "master/example.com";
# type master;
#};
# You can insert further zone records for your own domains below or create
# single files in /etc/named.d/ and add the file names to
# NAMED_CONF_INCLUDE_FILES.
# See /usr/share/doc/packages/bind/README.SUSE for more details.
"/etc/named.conf" 152L, 4201C 147,1 Bot
zone "." in {
type hint;
file "root.hint";
};
zone "localhost" in {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};
zone "pim.zone" in {
type master;
file "pim.zone";
};
zone "0.168.192.in-addr.arpa" in {
type master;
file "192.168.0.zone";
};
# Include the meta include file generated by createNamedConfInclude. This
# includes all files as configured in NAMED_CONF_INCLUDE_FILES from
# /etc/sysconfig/named
include "/etc/named.conf.include";
logging {
category default { log_syslog; };
channel log_syslog { syslog; };
};
#zone "example.com" in {
# allow-transfer { any; };
# file "master/example.com";
# type master;
#};
正相解析文件为:
$TTL 1W
@ IN SOA dns.pim.com.la. root.pim.com.la.(
42;Serial
2D;Refresh
4H;Retry
6W;Expire
1W);Minimum
IN NS dns.pim.com.la.
IN A 192.168.0.110
dns IN A 192.168.0.110
www IN A 192.168.0.49
方向解析文件为:
$TTL 1W
@ IN SOA pim.com.la. root.pim.com.la.(
42;Serial
2D;Refresh
4H;Retry
6W;Expire
1W);Minimum
IN NS dns.pim.com.la.
dns IN A 192.168.0.110
web IN A 192.168.0.110
www IN CNAME web
还是解析不了,不知道没有注意哪个细节 |
|