mirror of
https://github.com/laspavel/mikrotik-scripts.git
synced 2025-06-20 21:35:45 +02:00
9 lines
392 B
Text
9 lines
392 B
Text
:local domains {"example.com"; "www.example.com"; "checkout.example.com"}
|
|
/ip firewall address-list remove [/ip firewall address-list find list=novpn-list]
|
|
:foreach domain in=$domains do={
|
|
:do {
|
|
:local resolvedIPs [:resolve $domain]
|
|
/ip firewall address-list add list=novpn-list address=$resolvedIPs timeout=1h
|
|
} on-error={:log warning "Failed to resolve $domain"}
|
|
}
|
|
|