LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 831|回复: 1

red9中dns服务不能解析 !在线等!急。。

[复制链接]
发表于 2004-2-25 14:50:15 | 显示全部楼层 |阅读模式
俺把系统重装了一下,配置完后不能解析,请高手指点,,,,,谢谢了

[root@linux19 etc]# nslookup 192.168.1.19
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server: 192.168.1.1
Address: 192.168.1.1#53

** server can't find 19.1.168.192.in-addr.arpa: NXDOMAIN

[root@linux19 etc]# nslookup thj.mycompany.com
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server: 192.168.1.19
Address: 192.168.1.19#53

** server can't find thj.mycompany.com: SERVFAIL

[root@linux19 etc]# cat 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 "mycompany.com" IN {
type master;
file "name2ip.conf";
allow-update { none; };
};

zone "1.168.192.in-addr.arpa" IN {
type master;
file "ip2name.conf";
allow-update { none; };
};

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; };
};

include "/etc/rndc.key";
[root@linux19 etc]# cat /var/named/named2ip.conf
cat: /var/named/named2ip.conf: 没有那个文件或目录
[root@linux19 etc]# cat /var/named/name2ip.conf
$TTL 86400
$ORIGIN thj.mycompany.com.
@ IN SOA thj.mycompany.com.root.thj.mycompayn.com. (
2000062900 ;serial
28800 ;refresh
14400 ;retry
3600000 ;expire
86400 );minuum

IN NS thj.mycompany.com.
IN MX 10 thj.mycompany.com.
localhost IN A 127.0.0.1
thj IN A 192.168.1.19
www CNAME thj
mail CNAME thj
[root@linux19 etc]# cat /var/named/ip2name.conf
$TTL 86400
@ IN SOA thj.mycompany.com.root.thj.mycompany.com. (
2000062900 ;serial
28800 ;refresh
14400 ;retry
3600000 ;expire
86400 );minuum

IN NS thj.mycompany.com.
IN MX 10 thj.mycompany.com.
19 IN PTR thj.mycompany.com.
[root@linux19 etc]#
[root@linux19 etc]# cat hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 linux19 localhost.localdomain localhost
192.168.1.19 thj.mycompany.com thj
[root@linux19 etc]# cat hosts.conf
order hosts,bind
multi on
[root@linux19 etc]# cat resolv.conf
nameserver 192.168.1.1
nameserver 192.168.1.19
search mycompany.com
nameserver 202.99.192.68
[root@linux19 etc]#

named.ca
name2ip.conf
ip2name.conf
localhost.zone
named.local

这些文件都有呀。

请各位大虾帮忙看一下是那儿出了问题。
 楼主| 发表于 2004-2-26 11:12:47 | 显示全部楼层
不会没人顶吧,,,,,,,,,,,,
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表