From 16685dd332cee96a2db55e414e3a6a0c564a47a7 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 14 Jul 2020 09:12:44 +0200 Subject: global-functions: $DNSIsResolving: try a domain that is unlikely to be cached --- global-functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-54-g00ecf