aboutsummaryrefslogtreecommitdiffstats
path: root/netwatch-dns.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-08-28 08:53:20 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-11-15 23:20:45 +0100
commit815dc7da2c78768254c2032645f3f3c16e403b76 (patch)
tree65323053b2db06a55f1cba45c7ff2d01b6c8dbb4 /netwatch-dns.rsc
parent305b765341bf0e635670e5eddc816820e9cb6753 (diff)
netwatch-dns: explicitly expect type=A...staging
... which is provided since 7.16beta7 (but require next stable release 7.16 as that is available meanwhile).
Diffstat (limited to 'netwatch-dns.rsc')
-rw-r--r--netwatch-dns.rsc4
1 files changed, 2 insertions, 2 deletions
diff --git a/netwatch-dns.rsc b/netwatch-dns.rsc
index 09d471d..6fbfc89 100644
--- a/netwatch-dns.rsc
+++ b/netwatch-dns.rsc
@@ -3,7 +3,7 @@
# Copyright (c) 2022-2024 Christian Hesse <mail@eworm.de>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
#
-# requires RouterOS, version=7.14
+# requires RouterOS, version=7.16
#
# monitor and manage dns/doh with netwatch
# https://git.eworm.de/cgit/routeros-scripts/about/doc/netwatch-dns.md
@@ -80,7 +80,7 @@
:local HostVal [ /tool/netwatch/get $Host ];
:local HostInfo [ $ParseKeyValueStore ($HostVal->"comment") ];
:local HostName [ /ip/dns/static/find where name address=($HostVal->"host") \
- (!type or type="A" or type="AAAA") !disabled !dynamic ];
+ (type="A" or type="AAAA") !disabled !dynamic ];
:if ([ :len $HostName ] > 0) do={
:set HostName [ /ip/dns/static/get ($HostName->0) name ];
}