求 RB 系列2233.org的域名解释脚本(在PC上能用的在RB上用不着)
以下脚本在PC 机上能解释,但COPY到RB450G上,解释不了,什么原因?求RB系列上能用的脚本!!!!
:local ednsuser "用户名"
:local ednspass "密码"
:local ednshost "域名"
:local ednsinterface "拨号名"
: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 ;
}
} /ip dns set servers=8.8.8.8,8.8.4.4
一般来说是这个问题:lol
页:
[1]