mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-30 15:54:56 +02:00
netwatch-dns: explicitly expect type=A...
... which is provided since 7.16beta7 (but require next stable release 7.16 as that is available meanwhile).
This commit is contained in:
parent
6548f83ef4
commit
09e8b1d219
2 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ Manage DNS and DoH servers from netwatch
|
|||
[](https://github.com/eworm-de/routeros-scripts/stargazers)
|
||||
[](https://github.com/eworm-de/routeros-scripts/network)
|
||||
[](https://github.com/eworm-de/routeros-scripts/watchers)
|
||||
[](https://mikrotik.com/download/changelogs/)
|
||||
[](https://mikrotik.com/download/changelogs/)
|
||||
[](https://t.me/routeros_scripts)
|
||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A4ZXBD6YS2W8J)
|
||||
|
||||
|
|
|
@ -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 ];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue