global-functions: $DNSIsResolving: try a domain that is unlikely to be cached

This commit is contained in:
Christian Hesse 2020-07-14 09:12:44 +02:00
parent d75ef3bd69
commit 16685dd332

View file

@ -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;