免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1541 | 回复: 1
打印 上一主题 下一主题

[DNS] DNS服务器在被NSLOOKUP使用时提示没有server name [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-05-28 18:00 |只看该作者 |倒序浏览
  1. C:\Documents and Settings\admin>;nslookup - 211.154.223.162
  2. *** Can't find server name for address 211.154.223.162: Non-existent domain
  3. Default Server:  UnKnown
  4. Address:  211.154.223.162

  5. >; 21cn.com
  6. Server:  UnKnown
  7. Address:  211.154.223.162

  8. Non-authoritative answer:
  9. Name:    21cn.com
  10. Addresses:  61.140.60.83, 61.140.60.90

  11. >;
复制代码


windows下的出错代码,但是还是可以使用,但在bsd和linux上根本无法使用,请问需要配置什么文件来获得servername
我的name.conf如下

  1. key "rndc-key" {
  2. algorithm hmac-md5;      
  3. secret "AVCalvDhZ2i6k9hZ6T3hng==";      
  4. };
  5. controls {
  6. inet 127.0.0.1 port 953      
  7. allow { 127.0.0.1; } keys { "rndc-key"; };               
  8. };
  9. //End of named.conf
  10. options {
  11.         directory "/etc/namedb";

  12.         forwarders {
  13.                 127.0.0.1;
  14.         };
  15. };

  16. host { any; } {
  17.         topology {
  18.                 127.0.0.0/8;
  19.         };
  20. };


  21. zone "." {
  22.         type hint;
  23.         file "named.root";
  24. };

  25. zone "0.0.127.IN-ADDR.ARPA" {
  26.         type master;
  27.         file "localhost.rev";
  28. };

  29. // RFC 3152
  30. zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA" {
  31.         type master;
  32.         file "localhost-v6.rev";
  33. };

  34. // RFC 1886 -- deprecated
  35. zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT" {
  36.         type master;
  37.         file "localhost-v6.rev";
  38. };



  39.      zone "yourw.com.cn" in{
  40.              type master;
  41.              file "yourw.com.cn";
  42.      };
  43.      
  44.      zone "117.30.218.in-addr.arpa" in{
  45.         type master;
  46.         file "yourw.com.cn.rev";
  47.      };
  48.      zone "esai.com.cn" in{
  49.              type master;
  50.              file "esai.com.cn";
  51.      };

  52.      zone "117.30.218.in-addr.esai.com.cn.arpa" in{
  53.         type master;
  54.         file "esai.com.cn.rev";
  55.      };
  56.      zone "esai.net" in{
  57.              type master;
  58.              file "esai.net";
  59.      };
  60.      zone "117.30.218.in-addr.esai.net.arpa" in{
  61.         type master;
  62.         file "esai.net.rev";
  63.      };
  64.      zone "esai.cn" in{
  65.              type master;
  66.              file "esai.cn";
  67.      };
  68.      zone "117.30.218.in-addr.esai.cn.arpa" in{
  69.         type master;
  70.         file "esai.cn.rev";
  71.      };
复制代码

论坛徽章:
0
2 [报告]
发表于 2005-05-29 17:01 |只看该作者

DNS服务器在被NSLOOKUP使用时提示没有server name


  1. key "rndc-key" {
  2. algorithm hmac-md5;
  3. secret "AVCalvDhZ2i6k9hZ6T3hng==";
  4. };
  5. controls {
  6. inet 127.0.0.1 port 953
  7. allow { 127.0.0.1; } keys { "rndc-key"; };
  8. };

  9. options {
  10.         directory "/etc/namedb";
  11.     rrset-order { class ANY type ANY name "*" order random ; };

  12.         forwarders {
  13.                 127.0.0.1;
  14.         };


  15. };

  16. host { any; } {
  17.         topology {
  18.                 127.0.0.0/8;
  19.         };
  20. };

  21. zone "." {
  22.         type hint;
  23.         file "named.root";
  24. };

  25. zone "0.0.127.IN-ADDR.ARPA" {
  26.         type master;
  27.         file "localhost.rev";
  28. };

  29. // RFC 3152
  30. zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA" {
  31.         type master;
  32.         file "localhost-v6.rev";
  33. };

  34. // RFC 1886 -- deprecated
  35. zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT" {
  36.         type master;
  37.         file "localhost-v6.rev";
  38. };



  39.      zone "yourw.com.cn" in{
  40.              type master;
  41.              file "yourw.com.cn";
  42.      };

  43.      zone "223.154.211.in-addr.arpa" in{
  44.         type master;
  45.         file "yourw.com.cn.rev";
  46.      };
  47.      zone "esai.com.cn" in{
  48.              type master;
  49.              file "esai.com.cn";
  50.      };

  51.      zone "esai.net" in{
  52.              type master;
  53.              file "esai.net";
  54.      };
  55.      zone "esai.cn" in{
  56.              type master;
  57.              file "esai.cn";
  58.      };
复制代码



你的named.conf文件都不对,用我给你的这个,再检查一下yourw.com.cn.rev文件的正确性就应该解决了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP