]> Git [git.vados.ru] :: Repos - Mikrotiks/ros.vados.ru.git/commitdiff
Autocommit in repo: ros.vados.ru, generated by owner: root, in 13:05:03 15.05.2026.
authorvados-dev <192440777+vados-dev@users.noreply.github.com>
Fri, 15 May 2026 10:05:04 +0000 (13:05 +0300)
committervados-dev <192440777+vados-dev@users.noreply.github.com>
Fri, 15 May 2026 10:05:04 +0000 (13:05 +0300)
html/AM-GlobalFunc.rsc
html/AM-RKN-dnsLookup.rsc

index 90e0c8780ba140c1a0e56b92cc27e95102acbe8a..10305bcd0516b23a0ef9d44b790dbfe63f42fa16 100644 (file)
@@ -17,9 +17,9 @@
 :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;
index 62d976fbba1971b0a49d6b1dc8f2640feb0cd00b..9c3ffe50171b9ddb5d1c0c28594938b6b93f845b 100644 (file)
@@ -60,11 +60,15 @@ while (!$dnsLookupReady) do={ :nothing; }
     :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
@@ -80,6 +84,7 @@ while (!$dnsLookupReady) do={ :nothing; }
                 :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