|
|
|
|
 有关DNS解析的初级问题,望广大高手指点,谢谢 - hero1981 [ 2005-04-06 20:32 | 4,173 byte(s)]
 Re: 有关DNS解析的初级问题,望广大高手指点,谢谢 - jingzhi [ 2005-04-09 22:23 | 362 byte(s)]
 Re: 有关DNS解析的初级问题,望广大高手指点,谢谢 - MikeWu [ 2005-04-09 12:34 | 62 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
Linux DNS SRV IP:192.168.1.4
WIN2kp Client IP:192.168.1.1
客户机为WIN2KP,网关,DNS地址都指向linux DNS服务器
没有启动named时,在W2kp客户端
C:>nslookup
*** Can't find server name for address 192.168.1.4: No response from server
*** Default servers are not available
Default Server: UnKnown
Address: 192.168.1.4
> test.com
Server: UnKnown
Address: 192.168.1.4
*** UnKnown can't find test.com: No response from server
>
启动了named时,在W2kp客户端
C:>nslookup
Default Server: test.com
Address: 192.168.1.4
> test.com
Server: test.com
Address: 192.168.1.4
DNS request timed out.
timeout was 2 seconds.
*** test.com can't find test.com: Server failed
>
以下是Linux DNS配置文件
[root@localhost named]# more /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 "test.com" IN {
type master;
file "name2ip";
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "ip2name";
};
include "/etc/rndc.key";
##############################name2ip正向解析文件
[root@localhost named]# more name2ip
$TTL 86400
$ORIGIN test.com.
@ 1D IN SOA test.com. root.test.com. (
43 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS test.com.
1D IN A 192.168.1.4.
www IN CNAME test.com.
##############################ip2name反向解析文件
$TTL 86400
@ IN SOA test.com. root.test.com. (
1997022701 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS test.com.
4 IN PTR test.com.
不知何故,总是在客户端解析报错,在浏览器里输入域名业务也无法找到地址,请指教
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
检查resolv.conf 和host.conf
设置搜索顺序。
或者干脆吧resolv.conf删除。
俺的DNS只能做正向解析,不能做反向解析,更郁闷!!!
查不出错来。
日志要看,但有时看了也没有用,不知道是哪儿的问题啊!是吧。
在网上看了一位大哥,把bind删了,之后重装上去,配置DNS,之后成功!!!
呵呵,林子大了,什么怪问题都出!!
|
|
|
[Original]
[Print]
[Top]
|
|
|