免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2495 | 回复: 1

[DNS] 谁帮我解决下智能DNS的问题 [复制链接]

论坛徽章:
0
发表于 2011-07-23 10:55 |显示全部楼层
我用WINDOWS 2003 做了个BIND 的智能DNS 配置如下
我在万网上注册了我的NDS  dns1.zzdyjz.com ,dns2.zzdyjz.com   分别对应了一个网通和电信的ip地址。


然后我的服务器配置了2个网卡网卡是内网的地址。在防火墙上做了一对一的公网地址的转换。
  named.conf  内容

acl "trust-lan" { 127.0.0.1/8; 192.168.0.0/24;};
options {
    directory "C:\WINDOWS\system32\dns\etc";
    recursion no;
    version "0.0.0";
    allow-transfer { "trust-lan";};
    allow-notify { "trust-lan"; };
    auth-nxdomain no;
    forwarders { 202.102.227.68;202.102.224.68;};

};

#这一段内容拷贝来自rndc.conf
key "rndc-key" {
        algorithm hmac-md5;
        secret "bescDZvBHWBXPCfRDoIZHw==";
};

controls {
        inet 127.0.0.1 port 953
                allow { 127.0.0.1; } keys { "rndc-key"; };
};
#注意在C:\WINDOWS\system32\dns\log\ 下建dns_warnings.txt dns_logs.txt
logging {
channel warning
{ file "C:\WINDOWS\system32\dns\log\dns_warnings.txt" versions 3 size 1240k;
severity warning;
print-category yes;
print-severity yes;
print-time yes;
};
channel general_dns
{ file "C:\WINDOWS\system32\dns\log\dns_logs.txt" versions 3 size 1240k;
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
category default { warning; };
category queries { general_dns; };
};
#将网通的地址范围数据
include "cnc.conf";
# 判断如果是网通的地址范围,则会执行此处,调用网通的解析
view "view_cnc" {
match-clients { any; };
zone "." {
type hint;
file "named.root";
};

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

include "master/cnc.def";
};

view "view_any" {
match-clients { any; };
zone "." {
type hint;
file "named.root";
};

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

include "master/telecom.def";
};


是这个。

zone "jpw231.com" {
type master;
file "C:\WINDOWS\system32\dns\etc\master\cnc\jpw231.com.txt";
};



zone "jpw231.com" {
type master;
file "C:\WINDOWS\system32\dns\etc\master\telecom\jpw231.com.txt";
};










$TTL 3600
$ORIGIN jpw231.com.
@ IN SOA dns1.zzdyjz.com. root.zzdyjz.com.(
2006111520 ;Serial
3600 ; Refresh ( seconds )
900 ; Retry ( seconds )
68400 ; Expire ( seconds )
15 );Minimum TTL for Zone ( seconds )
;
@ IN NS dns1.zzdyjz.com.
@ IN A 1.192.127.109
www IN A 1.192.127.109
;
;end


$TTL 3600
$ORIGIN jpw231.com.
@ IN SOA dns2.zzdyjz.com. root.zzdyjz.com.(
2006111520 ;Serial
3600 ; Refresh ( seconds )
900 ; Retry ( seconds )
68400 ; Expire ( seconds )
15 );Minimum TTL for Zone ( seconds )
;
@ IN NS dns2.zzdyjz.com.
@ IN A 125.46.83.131
www IN A 125.46.83.131
;
;end


2个解析文件



现在进程可以启动。我域名 www.jpw231.com 的DNS已经改成了这2个DNS。
去看log日志

master file localhost.rev: file not found
23-七月-2011 9:50:05.717 general: error: zone 0.0.127.IN-ADDR.ARPA/IN/view_cnc: loading master file localhost.rev: file not found
23-七月-2011 9:50:05.717 general: error: zone 0.0.127.IN-ADDR.ARPA/IN/view_any: loading master file localhost.rev: file not found
23-七月-2011 9:55:23.498 general: error: zone 0.0.127.IN-ADDR.ARPA/IN/view_cnc: loading master file localhost.rev: file not found
23-七月-2011 9:55:23.514 general: error: zone 0.0.127.IN-ADDR.ARPA/IN/view_any: loading master file localhost.rev: file not found
23-七月-2011 10:14:30.920 general: error: zone 0.0.127.IN-ADDR.ARPA/IN/view_cnc: loading master file localhost.rev: file not found
23-七月-2011 10:14:30.920 general: error: zone 0.0.127.IN-ADDR.ARPA/IN/view_any: loading master file localhost.rev: file not found
23-七月-2011 10:26:25.170 general: error: zone 0.0.127.IN-ADDR.ARPA/IN/view_cnc: loading master file localhost.rev: file not found
23-七月-2011 10:26:25.170 general: error: zone 0.0.127.IN-ADDR.ARPA/IN/view_any: loading master file localhost.rev: file not found
有报错。


去解析域名的时候


C:\Documents and Settings\Administrator>nslookup
Default Server:  zzdc1.create.com.cn
Address:  192.168.1.10

> www.jpw231.com
Server:  zzdc1.create.com.cn
Address:  192.168.1.10

*** zzdc1.create.com.cn can't find www.jpw231.com: Server failed


会有这样的提示。有时候会提示超时。



谁帮我分析下是什么原因。
或者谁做过的指导下
QQ2287223839
定重谢

论坛徽章:
0
发表于 2011-07-23 19:01 |显示全部楼层
先把日志的错解决了,配置有问题。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP