SRX DDNS(动态DNS)

Junos要求11.1R1.10,通过使用automation script来支持DDNS,这个Script脚本可以在这里下载http://forums.juniper.net/jnet/p_w_uploads/jnet/junos-automation/392/1/dyn-dns-update.xslt.zip

下载后解压,把解压得到的文件上传到SRX/var/db/scripts/event/目录下。

配置

set system services apply-macro dyndns-client1 hostname XXX.dyndns.org

set system services apply-macro dyndns-client1 password

set system services apply-macro dyndns-client1 type dyndns

set system services apply-macro dyndns-client1 username

##注意,上面红字的apply-macro在系统中确实存在的,直接手动输入,TAB是无法补全的。

set event-options policy dyn-dns-updater events SYSTEM

set event-options policy dyn-dns-updater attributes-match SYSTEM.message matches "EVENT Add"

set event-options policy dyn-dns-updater then event-script dyn-dns-update.xslt

 

set event-options event-script file dyn-dns-update.xslt   ##上传的文件名

排错

1、确保你没有过滤任何的DDND相关的流量,比如:DNSHTTP

2、启用完全的日志记录,并对出现的问题做日志检查,可以使用命令“set system syslog file dyn-debug any any