mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
dhcp-to-dns: use $0 in strings
This commit is contained in:
@@ -24,8 +24,8 @@
|
||||
([ $IfThenElse ($PrefixInZone = true) "dhcp." ] . \
|
||||
[ $IfThenElse ($HostNameInZone = true) ($Identity . ".") ] . $Domain);
|
||||
:local Ttl 5m;
|
||||
:local CommentPrefix "managed by dhcp-to-dns for ";
|
||||
:local CommentString "--- dhcp-to-dns above ---";
|
||||
:local CommentPrefix ("managed by " . $0 . " for ");
|
||||
:local CommentString ("--- " . $0 . " above ---");
|
||||
|
||||
:if ([ :len [ / ip dns static find where comment=$CommentString name=- type=NXDOMAIN disabled ] ] = 0) do={
|
||||
/ ip dns static add comment=$CommentString name=- type=NXDOMAIN disabled=yes;
|
||||
|
Reference in New Issue
Block a user