论坛依然活动量不大
ROS 6.15版本有个 ip--Cloud 这个上面的DNS-name 能不能改,那么复杂不好记,还有6.15版本的changeip更新只检测升级但是就是域名解析不了这个IP我用着挺好的,每次都能正常联接,下面是我用的脚本
:global ddnsuser "你申请的用户名"
:global ddnspass "密码"
:global ddnshost "免费二级域名"
:global ddnsinterface "pppoe-out1"
:global ddnslastip
:global ddnsip [ /ip address get address ]
:if ( [:typeof $ddnslastip]="nothing" ) do={ :global ddnslastip 0.0.0.0/0 }
:if ( [:typeof $ddnsip]="nothing" ) do={
:log info ("DDNS: No ip address present on " . $ddnsinterface . ", please check.")
} else={
:if ($ddnsip != $ddnslastip) do={
:log info "DDNS: Sending UPDATE!"
:log info [ /tool dns-update name=$ddnshost address=[:pick $ddnsip 0 [:find $ddnsip "/"] ] key-name=$ddnsuser key=$ddnspass ]
:global ddnslastip $ddnsip
} else={
:log info "DDNS: No change"
}
}
:log info "DDNS: End"
页:
[1]