请教,帮看一下这个脚本“支持3322动态域名的脚本”
本帖最后由 online-boy 于 2012-5-25 02:14 编辑:global ednsuser "用户名"
:global ednspass "密码"
:global ednshost "xxx.3322.org"
:global ednsinterface "pppoe-out1"#拨号名称
:global members "http://members.3322.org/dyndns/update?system=dyndns"
:global status
:global status running]
:if ($status!=false) do={
:global ednslastip [:resolve $ednshost]
:if ([ :typeof $ednslastip ] = nil ) do={ :global ednslastip "0" }
:global ednsiph [ /ip address get address ]
:global ednsip [:pick $ednsiph 0 [:find $ednsiph "/">
:global ednsstr "&hostname=$ednshost&myip=$ednsip"
:if ($ednslastip != $ednsip) do={
/tool fetch url=($members . $ednsstr) mode=http user=$ednsuser password=$ednspass dst-path=$ednshost
:delay 2
:global result
:log info ($ednshost . " " .$result)
/file remove $ednshost ;
}
}
个人觉得红色部分有问题! 哪位帮看一下! 没人用过这个脚本么?
页:
[1]