aboutsummaryrefslogtreecommitdiffstats
path: root/netwatch-dns.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-10-27 22:55:15 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-10-27 22:55:15 +0200
commitf60c72dc78da3ff14ccc23988b342d94a662f406 (patch)
tree6303cb0556f4d425f7e5ed066bc84fa6d1ac8d8a /netwatch-dns.rsc
parenta407332ea16da2d859ff994d20cc4f7137eb89b7 (diff)
netwatch-dns: match on word boundary
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 119a367..3e3e27c 100644
--- a/netwatch-dns.rsc
+++ b/netwatch-dns.rsc
@@ -26,7 +26,7 @@ $ScriptLock $0;
:local DnsFallback ({});
:local DnsCurrent [ /ip/dns/get servers ];
-:foreach Host in=[ /tool/netwatch/find where comment~"dns" status="up" ] do={
+:foreach Host in=[ /tool/netwatch/find where comment~"\\bdns\\b" status="up" ] do={
:local HostVal [ /tool/netwatch/get $Host ];
:local HostInfo [ $ParseKeyValueStore ($HostVal->"comment") ];
@@ -61,7 +61,7 @@ $ScriptLock $0;
:local DohCert "";
:local DohCurrent [ /ip/dns/get use-doh-server ];
-:foreach Host in=[ /tool/netwatch/find where comment~"doh" status="up" ] do={
+:foreach Host in=[ /tool/netwatch/find where comment~"\\bdoh\\b" status="up" ] do={
:local HostVal [ /tool/netwatch/get $Host ];
:local HostInfo [ $ParseKeyValueStore ($HostVal->"comment") ];