mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-10 01:54:29 +02:00
global-functions: $DNSIsResolving: try a domain that is unlikely to be cached
This commit is contained in:
parent
d75ef3bd69
commit
16685dd332
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue