3322公云DDNS动态域名解释
#5qq:20822本DDNS脚本默认更新线路为PPPOE-OUT1,如果PPPOE-OUT1掉线状态则更新PPPOE-OUT2:do {
:local ether
#DDNS帐号
:local userroot
#DDNS密码
:local pass444
#DDNS域名
:local hostros.3322.org
#以下不需要修改
:local status running];
:if ($status=true) do={
:set ether "pppoe-out1"};
:if ($status=false) do={
:set ether "pppoe-out2"};
:local oldip [:resolve $host]
:delay 5s
:local newip [ /ip address get address ]
:set newip [:pick $newip 0 [:find $newip "/"]]
:if ($oldip != $newip) do={
/tool fetch url=("http://members.3322.org/dyndns/update\?system=dyndns&hostname=\
$host&myip=$newip") mode=http user=$user password=$pass dst-path=$host
:log error ("\BE\C9\B5\C4IP\B5\D8\D6\B7\A3\BA: ".$oldip)
:log error ("\D0\C2\B5\C4IP\B5\D8\D6\B7\A3\BA: ".$newip)
:delay 3s
:local Result
:if ([:find $Result "good"] != "nil") do={
:log error ($host." \B8\FC\D0\C2\B3\C9\B9\A6")
} else={
:log error ($host." \B8\FC\D0\C2\CA\A7\B0\DC")}
/file remove $host}}
双线策略。默认走PPPOE-OUT1 掉线后解释~~~~~OUT2 7.X版本能用吗, qq10960 发表于 2025-1-21 20:22
7.X版本能用吗,
OK:):):):):):):) qq10960 发表于 2025-1-21 20:22
7.X版本能用吗,
http://www.pubyun.com/accounts/signin/?next=/user/ ludyboy 发表于 2025-1-21 20:47
http://www.pubyun.com/accounts/signin/?next=/user/
不报错好评,之前用的都有bug
页:
[1]