diff options
author | Christian Hesse <mail@eworm.de> | 2020-07-14 09:12:44 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-07-14 09:12:44 +0200 |
commit | 16685dd332cee96a2db55e414e3a6a0c564a47a7 (patch) | |
tree | e0b638e200495115679c9b5139ce13ceb49bb56b /global-functions | |
parent | d75ef3bd69ab0995680b6cddaf134a65cc1a2a18 (diff) |
global-functions: $DNSIsResolving: try a domain that is unlikely to be cached
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/global-functions b/global-functions index 0a6b709..687fb6c 100644 --- a/global-functions +++ b/global-functions @@ -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; |