:global GlobalFuncReady false;
# Git commit id & info, expected configuration version
-:global CommitId "main/651/c95dd067";
+:global CommitId "main/652/6a20e295";
:global CommitTAG "unknown";
-:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 12:40:03 15.05.2026.";
+:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 13:05:03 15.05.2026.";
# The variables are received right here.
:global GlobalConfVersion 140;
: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
- :do {\r
- /ip firewall address-list add list=$ListRKN address=$newAddress comment=$aItem;\r
- } on-error={\r
+# :do {\r
+ :if ([/ip firewall address-list add list=$ListRKN address=$newAddress comment=$aItem]) do={\r
+ :log warning "Successfully adding ip to list A record: $dnsRecord, address: $newAddress domain: $aItem";\r
+ } else={\r
:log error "error when adding ip to list A record: $dnsRecord, address: $newAddress domain: $aItem";\r
- }\r
+ }\r
+# } on-error={\r
+# :log error "error when adding ip to list A record: $dnsRecord, address: $newAddress domain: $aItem";\r
+# }\r
}\r
:if ([/ip dns cache all get $dnsRecord type]="CNAME") do={\r
:local cname;\r
:do {\r
:set cnameAddress [/ip dns cache all get $aRecord data];\r
/ip firewall address-list add list=$ListRKN address=$cnameAddress comment=$aItem;\r
+ :log warning "Succesfully adding ip to list CNAME record: $cname, A record: $aRecord, address: $newAddress, from domain: $aItem.";\r
# /ip firewall raw add action=add-dst-to-address-list address-list=$ListRKN address-list-timeout=none-dynamic chain=prerouting comment=$aItem content=$aItem;\r
} on-error={\r
:log error "error when adding ip to list CNAME record: $cname, A record: $aRecord, address: $newAddress, from domain: $aItem.";\r