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

由 jeffreyli 在 02-25-2004 14:50 发表:

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

俺把系统重装了一下,配置完后不能解析,请高手指点,,,,,谢谢了

[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 <br

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus