Chinaunix

标题: 求助:无法正向解析,出现SERVFAIL错误,有文件,请各位帮忙. [打印本页]

作者: Mscong    时间: 2007-01-10 13:13
标题: 求助:无法正向解析,出现SERVFAIL错误,有文件,请各位帮忙.
我的name.comf.local文件如下:


  1.                 zone "dratek.net" in {
  2.                         type master;
  3.                         file "/etc/bind/db.xxxx.net";
  4.                 };

  5.                 zone "254.108.202.in-addr.arpa" in {
  6.                         type master;
  7.                         file "/etc/bind/db.202.108.254";
  8.                 };
复制代码


db.xxxx.net文件如下:


  1. ;
  2. ; BIND data file for local loopback interface
  3. ;
  4. $TTL    604800
  5. @       IN      SOA     dns.xxxx.net. root.dns.xxxx.net. (
  6.                          20070110       ; Serial
  7.                          604800         ; Refresh
  8.                           86400         ; Retry
  9.                         2419200         ; Expire
  10.                          604800 )       ; Negative Cache TTL

  11. @       IN      NS      dns.xxxx.net.
  12. @       IN      MX      10      mail.xxxx.net.
  13. xxxx.net.             IN      CHAME   www.xxxx.net.

  14. dns.xxxx.net.         IN      A       192.168.3.112
  15. www.xxxx.net.         IN      A       202.108.254.100
  16. mail.xxxx.net.        IN      A       202.108.254.101
  17. gw.xxxx.net.          IN      A       202.108.254.102
  18. gw2.xxxx.net.         IN      A       202.108.254.103
  19. search.xxxx.net.      IN      A       202.108.254.104
  20. search2.xxxx.net.     IN      A       202.108.254.105
  21. mirror.xxxx.net.      IN      A       202.108.254.106
  22. push.xxxx.net.        IN      A       202.108.254.107
  23. push2.xxxx.net.       IN      A       202.108.254.108
复制代码


反向解析我就不放上来了,我测试是没问题的....

问题是:用nslookup输入例如:dns.xxxx.net域名的时候出现错误,错误如下:


  1. mscong@dns:/etc/bind$ nslookup
  2. > dns.xxxx.net
  3. Server:         192.168.3.112
  4. Address:        192.168.3.112#53

  5. ** server can't find dns.xxxx.net: SERVFAIL
  6. >
复制代码


操作系统为Ubuntu,bind版本为bind9......正向解析这里我好象写错了,不过反复测试找不到原因,请各位大大帮忙!
备注:我已经将/etc/hosts 清掉,已经更改/etc/resolv.conf,请各位帮我看下我的正向解析是不是有问题!




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2