aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-05-17 15:46:32 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-05-17 16:19:57 +0200
commit604306f2200a2a4bc6f6865f4aea90befe2e0142 (patch)
tree164902dd6f17741dc8e984b1fdee8ef4b6cd784d
parent2ba389a2beeb8684f633684d606da6f653fa1205 (diff)
dhcp-to-dns: use $0 in strings
-rw-r--r--dhcp-to-dns4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcp-to-dns b/dhcp-to-dns
index 83e312f..bfd6195 100644
--- a/dhcp-to-dns
+++ b/dhcp-to-dns
@@ -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;