|
发表于 2008-3-11 11:58:18
|
显示全部楼层
看到你在FreeBSDChina的帖子
你可以用view来分开解析内、外网
仅供参考- view "internal" { #如果内网IP访问本DNS,使用该数据。
- match-clients { 192.168.1.0/24; };
- recursion yes;
- zone "abc" in {
- type master;
- file "master/abc";
- };
- zone "1.168.192.in-addr.arpa" in {
- type master;
- file "master/db.192.168.1";
- };
- };
- view "external" { #如果外网IP访问本DNS,使用该数据。
- match-clients { any; };
- recursion yes;
- zone "out.abc" in {
- type master;
- file "master/out.abc";
- };
复制代码 |
|