BIND问题!大家给看看!谢谢阿 !
zhaodanyy
|
1#
zhaodanyy 发表于 2007-04-14 16:33
BIND问题!大家给看看!谢谢阿 !
/etc/named.conf文件配置结果:
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 "zhaodan.cn" IN { type master; file "zhaodan"; allow-update { none; }; }; zone "1.168.192.in-addr.arpa" IN { type master; file "zhaodan-fan"; allow-update { none; }; }; include "/etc/rndc.key"; --------------------------------------- /ect/resolv.conf文件: ; generated by /sbin/dhclient-script search domain nameserver 192.168.1.3 --------------------------------- /var/named/zhaodan文件: $TTL 86400 @ IN SOA ns.zhaodan.cn. root.ns.zhaodan.cn( 199802151; serial 28800; refresh 14400; retry 3600000; expire 86400); minimum,seconds; NS ns.zhaodan.cn. ns A 192.168.1.3 www A 192.168.1.4 ftp A 192.168.1.4 ---------------------- /var/named/zhaodan-fan文件结果: $TTL 86400 @ IN SOA ns.zhaodan.cn. root.ns.zhaodan.cn. ( 1997022700 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS ns.zhaodan.cn. 1 IN PTR ns.zhaodan.cn. 10 IN PTR www.zhaodan.cn. 100 IN PTR ftp.zhaodan.cn ------------------------------------------- 使用service named restart nslookup >www.zhaodan.cn 显示unknow hostname!这个是什么原因! /var/log/messages: Apr 15 00:13:32 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.30.103.100#53 Apr 15 00:13:32 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.244.143.64#53 Apr 15 00:13:44 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.30.103.100#53 Apr 15 00:13:44 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.244.143.64#53 Apr 15 00:14:31 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.30.103.100#53 Apr 15 00:14:31 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.244.143.64#53 Apr 15 00:19:18 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.30.103.100#53 Apr 15 00:19:19 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.244.143.64#53 Apr 15 00:19:19 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.30.103.100#53 Apr 15 00:19:19 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.244.143.64#53 Apr 15 00:19:56 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.30.103.100#53 Apr 15 00:19:56 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.244.143.64#53 Apr 15 00:19:56 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.30.103.100#53 Apr 15 00:19:56 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.244.143.64#53 Apr 15 00:35:38 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.30.103.100#53 Apr 15 00:35:38 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.244.143.64#53 Apr 15 00:35:38 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.30.103.100#53 Apr 15 00:35:38 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.244.143.64#53 Apr 15 00:42:08 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.30.103.100#53 Apr 15 00:42:08 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.244.143.64#53 Apr 15 00:42:08 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.30.103.100#53 Apr 15 00:42:08 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.244.143.64#53 Apr 15 00:43:26 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.30.103.100#53 Apr 15 00:43:26 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.244.143.64#53 Apr 15 00:43:26 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.30.103.100#53 Apr 15 00:43:26 localhost named[4786]: lame server resolving 'www.zhaodan.cn' (in 'zhaodan.cn'?): 218.244.143.64#53 |