:global GlobalFuncReady false;
# Git commit id & info, expected configuration version
-:global CommitId "main/647/752c0dee";
+:global CommitId "main/648/4ed2b672";
:global CommitTAG "unknown";
-:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 11:55:03 15.05.2026.";
+:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 12:05:02 15.05.2026.";
# The variables are received right here.
:global GlobalConfVersion 140;
/ip firewall address-list remove $aListItem;\r
}\r
:foreach aItem in=$arrRKN do={\r
- :do {\r
- :resolve $aItem;\r
- } on-error={\r
- :log error "dns resolve failure [ ip - resolve ip ]";\r
- }\r
+# :do {\r
+ :retry delay=500ms max=5 on-error={:log error "dns resolve failure [ $arItem - resolve ip ]"} command={:resolve $aItem}\r
+# } on-error={\r
+# :log error "dns resolve failure [ $arItem - resolve ip ]";\r
+# }\r
:foreach dnsRecord in=[/ip dns cache all find where (name=$aItem)] do={\r
:if ([/ip dns cache all get $dnsRecord type]="A") do={\r
:local newAddress [/ip dns cache all get $dnsRecord data];\r
/system/scheduler/add name=$ScriptName on-event="/system/script { run $ScriptName; }" comment="Update RKN DNS Looup" interval=00:20:00 policy="ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon" start-time=startup;\r
}\r
:set dnsLookupReady true;\r
-delay 5s; \r
+delay 2s; \r
:global dnsLookupReady (a);\r