- 論壇徽章:
- 0
|
我們公司新配了一個dns服務(wù)器(Freebsd 4.10,bind 9),域名為livedoor.cn和livedoor.com.cn,需要同時對內(nèi)和對外提供dns服務(wù)。內(nèi)部使用10.4.5.0網(wǎng)段,我目前的做法是:
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
使用起來有時正常有時不正常,而且一個查詢還會解析出來內(nèi)網(wǎng)的ip地址。
剛才看帖子說要把內(nèi)網(wǎng)的解析和外網(wǎng)的解析分開,但是沒有找到解決辦法,請指點。 |
|