我配置完了DNS服务器,却不能解析。(整理篇)

由 魔人普乌 在 05-18-2003 20:28 发表:

我配置完了DNS服务器,却不能解析。(整理篇)

小弟配完了DNS 可是解析不出来。各位大哥帮我看一下。谢谢谢谢


Red Hat Linux 7.3

主机名:GBB988

IP: 192.168.0.12

Primary nameserver:192.168.0.12


测试:

[root@BGG988 root]# nslookup www.arkai.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.0.12

Address: 192.168.0.12#53

** server can't find www.arkai.com: SERVFAIL

[root@BGG988 root]# nslookup GBB988.arkai.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.0.12

Address: 192.168.0.12#53

** server can't find GBB988.arkai.com: SERVFAIL

[root@BGG988 root]# ping www.arkai.com

ping: unknown host www.arkai.com

[root@BGG988 root]# cd /var/named

[root@BGG988 named]# ls

arkai.com.zone named.arkai.com named.ca name.local

[root@BGG988 named]#


――― /ect/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 "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 "0.168.192.in-addr.arpa" IN {

type master;

file "named.arkai.com";

allow-update { none; };

};

zone "arkai.com" IN {

type master;

file "arkai.com.zone";

allow-update { none; };

};

include "/etc/rndc.key";

---------------------------------------------------------------------------------------

――― /ect/resolv.conf文件 ―――

-----------------------------------------

domain arkai.com

nameserver 192.168.0.12

-------------------------------------------

――― /var/named/named.local文件 ―――

-----------------------------------------------------------------------------------------------

$TTL 86400

IN SOA ocalhost. root.localhost. (

1997022700 ; Serial

28800 ; Refresh

14400 ; Retry

3600000 ; Expire

86400 ) ; Minimum

IN NS localhost.

www IN A 192.168.0.2

ftp IN A 192.168.0.3

mail IN A 192.168.0.5

1 IN PTR localhost.

-------------------------------------------------------------------------------------------------

――― /var/named/named.arkai.com文件 ―――

-----------------------------------------------------------------------------------------------

$TTL 86400

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