Skip to content

Instantly share code, notes, and snippets.

View GiannisDorokidis's full-sized avatar

GiannisD GiannisDorokidis

  • AIginio, Greece
  • 11:26 (UTC +03:00)
View GitHub Profile
@Pablo1
Pablo1 / dnsToAddressList
Created April 18, 2013 05:49
Mikrotik RouterOS Script - Sync Address List from DNS Lookup Results - CNAME and A Records This script might come in handy if you're trying to use domain names in firewall rules. To use this script you might write a script like the one below and schedule it. Be sure to declare three globals first : ListName, Servers, and Done. ListName and Serve…
:global ListName
:global Servers
:global Done
#has $Done been initialized?
:if ([:typeof $Done] != "boolean") do={
:set Done true;
}
#make sure previous runs have finished