首先感谢无私奉贤教程的朋友,当时急者作实验了,忘了那为朋友的名字了,再次歉意!而且我还要说一下藐视那些自以为是的家伙。
winbox中
system - scheduler - name随便写 - interval 00:30:00
on event 如下
:log info "DDNS: Begin"
:global ddns-user "用户名"
:global ddns-pass "密码"
:global ddns-host "*1"
:global ddns-interface "ADSL"(默认的名字是PPPOE OUT后改的ADSL)
:global ddns-ip [ /ip address get [/ip address find interface=$ddns-interface] address ]
:if ([ :typeof $ddns-lastip ] = nil ) do={ :global ddns-lastip 0.0.0.0/0 }
:if ([ :typeof $ddns-ip ] = nil ) do={
:log info ("DDNS: No ip address present on " . $ddns-interface . ", please check.")
} else={
:if ($ddns-ip != $ddns-lastip) do={
:log info "DDNS: Sending UPDATE!"
:log info [ /tool dns-update name=$ddns-host address=[:pick $ddns-ip 0 [:find $ddns-ip "/"] ] key-name=$ddns-user key=$ddns-pass ]
:global ddns-lastip $ddns-ip
} else={
:log info "DDNS: No change"
}
}
:log info "DDNS: End"
总之我现在解决问题了,有不明白和我以前一样着急的朋友请留铁
我是在 注册的域名
阅读(1534) | 评论(0) | 转发(0) |