netwatch-notify: try another workaround

The last one did not make it... Perhaps the cache just needs
a moment to settle?
This commit is contained in:
Christian Hesse 2024-02-27 23:18:31 +01:00
parent 93bed1b081
commit 01d2c3ea7e

View file

@ -79,10 +79,8 @@ $ScriptLock $0;
:if ([ $IsDNSResolving ] = true) do={
:do {
:local Resolve [ :resolve ($HostInfo->"resolve") ];
:if ($Resolve != $HostVal->"host" && \
[ :len [ /ip/dns/cache/find where name=($HostInfo->"resolve") data=[ :tostr ($HostVal->"host") ] ttl>0s ] ] = 0) do={
:delay 1500ms;
:resolve ($HostInfo->"resolve");
:if ($Resolve != $HostVal->"host") do={
:delay 100ms;
:if ([ :len [ /ip/dns/cache/find where name=($HostInfo->"resolve") data=[ :tostr ($HostVal->"host") ] ] ] = 0) do={
$LogPrintExit2 info $0 ("Name '" . $HostInfo->"resolve" . [ $IfThenElse \
($HostInfo->"resolve" != $HostInfo->"name") ("' for " . $Type . " '" . \