|
|
发表于 2005-3-24 20:55:43
|
显示全部楼层
Post by angelsss
能ping dns.hello.tm 应该说明你解析可以的。
那也许是你httpd.conf配置有问题吧,或者其他,
能ping ,是因为他的/etc/hosts,而不是bind.
Post by nothing9
# nslookup
;; connection timed out; no servers could be reached
sometimes there's something wrong with bind.
# /etc/init.d/bind9 restart
Stopping domain name service: namedrndc: connect failed: connection refused
这不明摆了说你的bind没有动起来么?用netstat -an | grep 53看看有没有named在监听,"connection refused"是因为rndc没有配置好,这个暂时先别管他,直接使用kill杀死named进程,然后再启动他. 好好检查你的/etc/resolv.conf和防火墙。
你可以试试这样:
$TTL 86400
$ORIGIN hello.tm.
hello.tm. IN SOA dns.hello.tm. root.dns.hello.tm. (
1 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
IN NS dns.hello.tm.
IN A 192.168.5.1
dns IN A 192.168.5.1
www IN A 192.168.5.1
如果确实是named的问题,那最好的办法就是将你的tail -n 40 /var/log/message贴上来,log对named的排错是很有帮助的. |
|