mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-20 19:04:37 +02:00
dhcp-to-dns: use $0 in strings
This commit is contained in:
parent
2ba389a2be
commit
604306f220
1 changed files with 2 additions and 2 deletions
|
@ -24,8 +24,8 @@
|
||||||
([ $IfThenElse ($PrefixInZone = true) "dhcp." ] . \
|
([ $IfThenElse ($PrefixInZone = true) "dhcp." ] . \
|
||||||
[ $IfThenElse ($HostNameInZone = true) ($Identity . ".") ] . $Domain);
|
[ $IfThenElse ($HostNameInZone = true) ($Identity . ".") ] . $Domain);
|
||||||
:local Ttl 5m;
|
:local Ttl 5m;
|
||||||
:local CommentPrefix "managed by dhcp-to-dns for ";
|
:local CommentPrefix ("managed by " . $0 . " for ");
|
||||||
:local CommentString "--- dhcp-to-dns above ---";
|
:local CommentString ("--- " . $0 . " above ---");
|
||||||
|
|
||||||
:if ([ :len [ / ip dns static find where comment=$CommentString name=- type=NXDOMAIN disabled ] ] = 0) do={
|
: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;
|
/ ip dns static add comment=$CommentString name=- type=NXDOMAIN disabled=yes;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue