- 论坛徽章:
- 0
|
看完 架构根据电信、网通用户自动解析不同IP的DNS服务器
http://www.toplee.com/blog/282.html#pp0
有几个问题想请教一下各位
因为我只有电信IP是固定的,网通只能用动态的ip
我的设想是用一个程序时时对网通哪张网卡监视,如果IP一有变动就更新配置,我想问一下用过BIND 9高手,如何动态修改这里的IP指定,修改后需要重启吗。
=================
添加网通的解析,解析到的IP为202.111.1.1
#ee cnc/wuhongsheng.com
添加
$TTL 3600
$ORIGIN wuhongsheng.com.
@ IN SOA ns.naizhao.com. root.ns.naizhao.com.(
2005121013 ;Serial
3600 ; Refresh ( seconds )
900 ; Retry ( seconds )
68400 ; Expire ( seconds )
15 );Minimum TTL for Zone ( seconds )
;
@ IN NS ns.naizhao.com.
@ IN A 202.111.1.1
www IN A 202.111.1.1
;
;end
添加电信的解析,解析到的IP为219.132.1.2
#ee telecom/wuhongsheng.com
添加
$TTL 3600
$ORIGIN wuhongsheng.com.
@ IN SOA ns.naizhao.com. root.ns.naizhao.com.(
2005121013 ;Serial
3600 ; Refresh ( seconds )
900 ; Retry ( seconds )
68400 ; Expire ( seconds )
15 );Minimum TTL for Zone ( seconds )
;
@ IN NS ns.naizhao.com.
@ IN A 219.132.1.2
www IN A 219.132.1.2
;
;end |
|