- 论坛徽章:
- 0
|
我们公司新配了一个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地址。
刚才看帖子说要把内网的解析和外网的解析分开,但是没有找到解决办法,请指点。 |
|