【麻烦】求个3.30可用的ddns脚本,changeip.com的服务
原来用的3.22ddns脚本一直运行的很好,换到3.30以后动态域名脚本就没成功过,其余几个控制脚本也都不能运行。求教一个可用于3.30ddns脚本,小弟先行谢过。 http://wiki.mikrotik.com/wiki/Dynamic_DNS_Update_Script_for_ChangeIP.com
上面有最详细说明和使用方法。 http://bbs.routerclub.com/thread-45026-1-1.html
试试这个问题吧 谢谢ls二位 就用最后一句都可以了 我帮你;ros3.30ddns更新
:global ddnsuser "用户名"
:global ddnspass "密码"
:global ddnshost "申请的域名"
:global ddnsip
:global ddnsipfn
:global ddnslastip [:tostr [:resolve $ddnshost] ]
:if ([ :typeof $ddnslastip ] = nil ) do={ :global ddnslastip "0" }
:global ddnsinterface "guanqian12"
:global ddnssystem ("mt-" . )
:local int
:local ddnsipfn [ /ip address get address ]
:global ddnsip [:pick $ddnsipfn 0 [:find $ddnsipfn "/" ] ]
:if ([ :typeof $ddnsip ] = nil ) do={
:log info ("DDNS: No ip address present on " . $ddnsinterface . ", please check.")
} else={
:if ($ddnsip != $ddnslastip) do={
:log info "DDNS: Sending UPDATE!"
:log info [ :put ]
:global ddnslastip $ddnsip
}
}
/tool dns-update name=$ddnshost address=$ddnsip key-name=$ddnsuser key=$ddnspass
这一句改改就成~
页:
[1]