mirror of
https://github.com/wifinigel/MikrotikScripting.git
synced 2025-06-22 01:39:01 +02:00
7 lines
215 B
Text
7 lines
215 B
Text
|
# ch10-05-error-check.rsc
|
||
|
:local WebSites { "badname1234.com"; "google.com"};
|
||
|
|
||
|
:foreach SiteName in=$WebSites do={
|
||
|
:local SiteIpAddress [/resolve $SiteName];
|
||
|
:put "Site IP for $SiteName is $SiteIpAddress";
|
||
|
}
|