如何搞定这个dns啊??
infozh
|
1#
infozh 发表于 2001-12-14 16:34
如何搞定这个dns啊??
想把一台安装了redhat 7.1的机子配置成局域网内的ftp、telnet、mail、DNS、HTTP等服务器,其名字为info,IP为192.168.1.9;在配置完成后,可以完成ftp、telnet等,但DNS有问题,只能解析localhost,不能解析info(本机)。
问题可能出现在DNS的各种配置文件中,但我不能找出来,请各位高手指教。 我把各种配置文件贴在下面: 1./var/named/named.local $TTL 86400 @ IN SOA localhost. root.localhost. ( 1997022700 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS localhost. 1 IN PTR localhost. -------------------------------------------------------- 2. /var/named/1.168.192 $TTL 86400 @ IN SOA info.linux.cn. hostmaster.linux.cn. ( 1997022700 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS info.linux.cn. 1 IN PTR info.linuxaid.cn. ; ; server section ; 9 IN PTR www.info.linux.cn 9 IN PTR ns.info.linux.cn. 9 IN PTR ftp.info.linux.cn. 9 IN PTR mail.info.linux.cn. ------------------------------------------------------------ 3. /var/named/linux.cn $TTL 86400 @ IN SOA ns.localhost. root.localhost. ( 2000080701 ;serial 28800 ;refresh 7200 ;retry 604800 ;expire 86400 ;default_ttl ) @ IN A 192.168.1.9 @ IN NS ns.localhost. @ IN MX 10 mail.localhost. localhost IN A 127.0.0.1 www IN A 192.168.1.9 info IN A 192.168.1.9 ftp IN A 192.168.1.9 mail IN A 192.168.1.9-------------------------------------------------------- 4. /etc/resolv.conf search nameserver 127.0.0.1 -------------------------------------------------------- 5. /etc/host.conf order hosts,bind multi on -------------------------------------------------------- 6. /etc/named.conf // generated by named-bootconf.pl options { directory "/var/named";// }; 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; }; }; //fllowing added on Nov 6th zone "1.168.192.in-addr.arpa" IN { type master; file "1.168.192"; allow-update { none; }; }; zone "linux.cn" IN { type master; file "linux.cn"; allow-update { none; }; }; key "key" { algorithm hmac-md5; secret "AfoFhdIIbRFjkJHwBnnvtmlyLKaMdCVqCbzMQnpzJoHIXgEBYcYIalRUxMqO"; }; --------------------------------------------- 运行 host -T info 命令出现下列信息; [root@info pam.d]# host -T info Host info. not found: 2(SERVFAIL) 在日志中查看时,出现下列提示: Dec 14 15:03:37 info named: named startup succeeded Dec 14 15:03:37 info named[1035]: starting BIND 9.1.0 -u named Dec 14 15:03:37 info named[1035]: using 1 CPU Dec 14 15:03:37 info named[1039]: loading configuration from '/etc/named.conf' Dec 14 15:03:37 info named[1039]: the default for the 'auth-nxdomain' option isnow 'no' Dec 14 15:03:37 info named[1039]: no IPv6 interfaces found Dec 14 15:03:37 info named[1039]: listening on IPv4 interface lo, 127.0.0.1#53 Dec 14 15:03:37 info named[1039]: binding TCP socket: address in use Dec 14 15:03:37 info named[1039]: listening on IPv4 interface eth0, 192.168.10.149#53 Dec 14 15:03:37 info named[1039]: binding TCP socket: address in use Dec 14 15:03:37 info named[1039]: running |