|
- local ddnsname
- :local ddnsuser
- :local ddnspsd
- :local ddnsinterface [/ip route get [/ip route find dst-address=0.0.0.0/0 active=yes comment="def"] interface]
- :local ddnsip [ /ip address get [/ip address find interface=$ddnsinterface] address]
- :local ddnsip [:pick $ddnsip 0 [:find $ddnsip "/"]]
- :if ($ddnsip =[:resolve $ddnsname]) do={
- :log info "ddns:No change"
- } else={
- :local urlstr ("http://members.3322.org/dyndns/update\?system=dyndns&hostname=" . $ddnsname . "&myip=" . $ddnsip)
- /tool fetch url=$urlstr mode=http user=$ddnsuser password=$ddnspsd dst-path=$ddnsname
- :delay 3
- :local result [/file get $ddnsname contents]
- :log info ($ddnsname . " " . $result)
- /file remove $ddnsname}
复制代码 备注:上述脚本中comment="def",是在多线有多条缺省网关时,给各个缺省网关加的备注,单线的可以不要此备注。 |
3389, 打印机, 诺德尔, 网吧, 网吧版, 网吧系统, ndeer, 极速版, 诺德尔, 极速版, 诺德尔, QQ空间, QQ签名, QQ空间, QQ签名, 绿茶, QQ签名, 服务器, 论坛, 3389, 免费, 3389, 打印机, 主机, QQ空间, QQ签名, 矮哨兵, 网吧, ta
|