免费注册 查看新帖 |

Chinaunix

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

[DNS] 同时对内部和外部都提供dns服务应怎么配? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-09-11 11:39 |只看该作者 |倒序浏览
我们公司新配了一个dns服务器(Freebsd 4.10,bind 9),域名为livedoor.cn和livedoor.com.cn,需要同时对内和对外提供dns服务。内部使用10.4.5.0网段,我目前的做法是:
less livedoor.cn

;
; The dns database file of zone livedoor.cn
; ;

@ IN SOA dns.livedoor.cn. root.livedoor.cn. (
                        2004090202      ; Serial
                        10800           ; Refresh after 3 hours
                        3600            ; Retry after 1 hour
                        604800          ; Expire after 1 week
                        86400           ; Minimum TTL if 1 day
)

;
; Set the dns server of this zone
;

                IN      NS      dns.livedoor.cn.

;
; Address for the canonical nsmes
;
localhost       IN      A       127.0.0.1
dns             IN      A       210.x.y.z
                IN      A       10.4.5.1
www             IN      A       10.4.5.2
                IN      A       210.x.y.z1
jh              IN      A       10.4.5.3

;
; Set the mx RR for the domail livedoor.cn
;

livedoor.cn.    IN      MX      10      www.livedoor.cn.

;
; Aliases
;
rt              IN      CNAME   dns
mail            IN      CNAME   www

;
; Interface specific names
;
dns10           IN      A       10.4.5.1
dns210          IN      A       210.x.y.z



dns# less livedoor.com.cn

;
; The dns database file of zone livedoor.com.cn
;
;

@ IN SOA dns.livedoor.com.cn. root.livedoor.cn. (
                        2004090302      ; Serial
                        10800           ; Refresh after 3 hours
                        3600            ; Retry after 1 hour
                        604800          ; Expire after 1 week
                        86400           ; Minimum TTL if 1 day
)

;
; Set the dns server of this zone
;

                IN      NS      dns.livedoor.com.cn.

;
; Address for the canonical nsmes
;
localhost       IN      A       127.0.0.1
;
; The dns database file of zone livedoor.com.cn
; Wrote by ge_johnny
;

@ IN SOA dns.livedoor.com.cn. root.livedoor.cn. (
                        2004090302      ; Serial
                        10800           ; Refresh after 3 hours
                        3600            ; Retry after 1 hour
                        604800          ; Expire after 1 week
                        86400           ; Minimum TTL if 1 day
)

;
; Set the dns server of this zone
;

                IN      NS      dns.livedoor.com.cn.

;
; Address for the canonical nsmes
;
localhost       IN      A       127.0.0.1
dns             IN      A       210.x.y.z
                IN      A       10.4.5.1
www             IN      A       10.4.5.2
                IN      A       210.x.y.z1
jh              IN      A       10.4.5.3

;
; Aliases
;
rt              IN      CNAME   dns
mail            IN      CNAME   www

;
; Set the mx RR for the domail livedoor.com.cn
;

livedoor.com.cn.        IN      MX      10      www.livedoor.com.cn.

;
; Interface specific names
;
dns10           IN      A       10.4.5.1
dns210          IN      A       210.x.y.z


使用起来有时正常有时不正常,而且一个查询还会解析出来内网的ip地址。

刚才看帖子说要把内网的解析和外网的解析分开,但是没有找到解决办法,请指点。

论坛徽章:
0
2 [报告]
发表于 2004-09-13 09:55 |只看该作者

同时对内部和外部都提供dns服务应怎么配?

哈哈~~

我找到了bind9的view功能,解决了我的问题~~

-o-

论坛徽章:
0
3 [报告]
发表于 2004-09-13 11:36 |只看该作者

同时对内部和外部都提供dns服务应怎么配?

俺也是使用VIEW的这属性来解决这样的问题的。:)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP