LinuxSir.cn,穿越时空的Linuxsir!

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

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

[复制链接]
发表于 2003-5-18 20:28:09 | 显示全部楼层 |阅读模式
小弟配完了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
      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/arkai.com.zone文件 ―――

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

$TTL      86400
$ORIGIN arkai.com
@                  1D IN SOA    @ root (
                                   42           ; serial (d. adams)
                                   3H          ; refresh
                                   15M        ; retry
                                   1W         ; expiry
                                   1D )        ; minimum

                     1D IN NS       @
2     IN   PTR www.arkai.com
3     IN   PTR ftp.arkai.com
5     IN   PTR mail.arkai.com
                     1D IN A         127.0.0.1

-------------------------------------------------------------------------------------------
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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