aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-09-22 12:29:15 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-09-22 12:29:15 +0200
commit4c6c30550fe509267b599bc46a020d1639089744 (patch)
treefee0c101042fc07d367ba726418bb1bba4d1487f
parent57c5c3f7049c0d60340c7fa66cb85cc2d5b65e78 (diff)
collect-wireless-mac: filter on dns type
-rw-r--r--collect-wireless-mac.capsman.rsc2
-rw-r--r--collect-wireless-mac.local.rsc2
-rw-r--r--collect-wireless-mac.template.rsc2
-rw-r--r--collect-wireless-mac.wifiwave2.rsc2
4 files changed, 4 insertions, 4 deletions
diff --git a/collect-wireless-mac.capsman.rsc b/collect-wireless-mac.capsman.rsc
index f421a53..65effa8 100644
--- a/collect-wireless-mac.capsman.rsc
+++ b/collect-wireless-mac.capsman.rsc
@@ -60,7 +60,7 @@ $ScriptLock $0 false 10;
:local DnsRec ([ /ip/dns/static/find where address=$Address ]->0);
:if ([ :len $DnsRec ] > 0) do={
:set DnsName ({ [ /ip/dns/static/get $DnsRec name ] });
- :foreach CName in=[ /ip/dns/static/find where cname=($DnsName->0) ] do={
+ :foreach CName in=[ /ip/dns/static/find where type=CNAME cname=($DnsName->0) ] do={
:set DnsName ($DnsName, [ /ip/dns/static/get $CName name ]);
}
}
diff --git a/collect-wireless-mac.local.rsc b/collect-wireless-mac.local.rsc
index 99f8d3b..3b97b52 100644
--- a/collect-wireless-mac.local.rsc
+++ b/collect-wireless-mac.local.rsc
@@ -60,7 +60,7 @@ $ScriptLock $0 false 10;
:local DnsRec ([ /ip/dns/static/find where address=$Address ]->0);
:if ([ :len $DnsRec ] > 0) do={
:set DnsName ({ [ /ip/dns/static/get $DnsRec name ] });
- :foreach CName in=[ /ip/dns/static/find where cname=($DnsName->0) ] do={
+ :foreach CName in=[ /ip/dns/static/find where type=CNAME cname=($DnsName->0) ] do={
:set DnsName ($DnsName, [ /ip/dns/static/get $CName name ]);
}
}
diff --git a/collect-wireless-mac.template.rsc b/collect-wireless-mac.template.rsc
index a584c79..bba151a 100644
--- a/collect-wireless-mac.template.rsc
+++ b/collect-wireless-mac.template.rsc
@@ -75,7 +75,7 @@ $ScriptLock $0 false 10;
:local DnsRec ([ /ip/dns/static/find where address=$Address ]->0);
:if ([ :len $DnsRec ] > 0) do={
:set DnsName ({ [ /ip/dns/static/get $DnsRec name ] });
- :foreach CName in=[ /ip/dns/static/find where cname=($DnsName->0) ] do={
+ :foreach CName in=[ /ip/dns/static/find where type=CNAME cname=($DnsName->0) ] do={
:set DnsName ($DnsName, [ /ip/dns/static/get $CName name ]);
}
}
diff --git a/collect-wireless-mac.wifiwave2.rsc b/collect-wireless-mac.wifiwave2.rsc
index 04e65e8..86cfd64 100644
--- a/collect-wireless-mac.wifiwave2.rsc
+++ b/collect-wireless-mac.wifiwave2.rsc
@@ -60,7 +60,7 @@ $ScriptLock $0 false 10;
:local DnsRec ([ /ip/dns/static/find where address=$Address ]->0);
:if ([ :len $DnsRec ] > 0) do={
:set DnsName ({ [ /ip/dns/static/get $DnsRec name ] });
- :foreach CName in=[ /ip/dns/static/find where cname=($DnsName->0) ] do={
+ :foreach CName in=[ /ip/dns/static/find where type=CNAME cname=($DnsName->0) ] do={
:set DnsName ($DnsName, [ /ip/dns/static/get $CName name ]);
}
}