有偿求助 实时更新3322动态域名的脚本
有偿求助 实时更新3322动态域名的脚本 哪位朋友有这样的脚本请联系我。。QQ:1464630666 有偿求助。 最好不封账号:local ednsuser "账号"
:local ednspass "密码"
:local ednshost "玉米.f3322.org"
:local ednsinterface "pppoe-out1"
:local members "http://members.3322.org/dyndns/update?system=dyndns"
#:local members "http://members.dyndns.org/nic/update?"
:local status
:local status running]
:if ($status!=false) do={
:local ednslastip [:resolve $ednshost]
:if ([ :typeof $ednslastip ] = nil ) do={ :local ednslastip "0" }
:local ednsiph [ /ip address get address ]
:local ednsip [:pick $ednsiph 0 [:find $ednsiph "/"]]
:local 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
:local result
:log info ($ednshost . " " .$result)
/file remove $ednshost ;
}
}
使用一年没问题 本帖最后由 solaoxo 于 2014-8-28 00:54 编辑
ip / cloud里面可以开启官方的ddns.
只有官方路由器才有。
页:
[1]