LinuxSir.cn,穿越时空的Linuxsir!

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

bind 如何设置成跨网段的呢

[复制链接]
发表于 2003-8-21 10:15:05 | 显示全部楼层 |阅读模式
有一台网关连接内网和外网,外网为211.161.x.x,内网为10.x.x.x。在网关上配置dns服务器,希望可以使内外网共用一个域名,但是在配置到named.conf的时候遇到了一点问题。
zone “5.110.10.in-addr.arpa”,这样的zone有共同点10.110.5.x,可是我的zone没有共同点,应该怎么写?难道写 zone ".in-addr.arpa"?
发表于 2003-8-21 14:38:39 | 显示全部楼层
那就分两个zone。

再说外网的IP好像是不需要你操心的 :p
发表于 2003-8-21 14:46:24 | 显示全部楼层
关注
 楼主| 发表于 2003-8-21 16:31:54 | 显示全部楼层
我去www.3322.org申请了一个子域名,所以要有一个对外的dns服务器。分两个zone的话好像邮件服务器不太好设,因为我用debian,默认的是exim,升级为exim4,但是每次发邮件地址总是内网的dns。
有没有什么好的办法呢?
发表于 2003-8-22 08:50:50 | 显示全部楼层
有点不明白。大家在说什么。能不能解释一下!:p
发表于 2003-8-22 16:09:21 | 显示全部楼层
可以开2个bind绑定不同的端口,用iptables转发到不同的端口就可以了.
 楼主| 发表于 2003-8-22 17:25:50 | 显示全部楼层
大家看看这段配置:

view "internal" {
      // This should match our internal networks.
      match-clients { 10.0.0.0/8; };

      // Provide recursive service to internal clients only.
      recursion yes;

      // Provide a complete view of the example.com zone
      // including addresses of internal hosts.
      zone "example.com" {
            type master;
            file "example-internal.db";
      };
};

view "external" {
      // Match all clients not matched by the previous view.
      match-clients { any; };

      // Refuse recursive service to external clients.
      recursion no;

      // Provide a restricted view of the example.com zone
      // containing only publicly accessible hosts.
      zone "example.com" {
           type master;
           file "example-external.db";
      };
};

是从bind9.org上面找来的,是不是会对我的问题有点帮助呢?不过我现在有点稀里糊涂的,还有点看不懂,希望大家指教。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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