mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $DNSIsResolving: try a domain that is unlikely to be cached
This commit is contained in:
@@ -224,8 +224,10 @@
|
||||
|
||||
# check if DNS is resolving
|
||||
:set DNSIsResolving do={
|
||||
:global CharacterReplace;
|
||||
|
||||
:do {
|
||||
:resolve mikrotik.com;
|
||||
:resolve ([ $CharacterReplace [ / system clock get time ] ":" "" ] . ".mikrotik.com");
|
||||
:return true;
|
||||
} on-error={
|
||||
:return false;
|
||||
|
Reference in New Issue
Block a user