aboutsummaryrefslogtreecommitdiffstats
path: root/dhcp-to-dns
diff options
context:
space:
mode:
Diffstat (limited to 'dhcp-to-dns')
-rw-r--r--dhcp-to-dns2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcp-to-dns b/dhcp-to-dns
index 6b97b56..c7b669e 100644
--- a/dhcp-to-dns
+++ b/dhcp-to-dns
@@ -53,7 +53,7 @@
:set dnsip [ / ip dns static get $dnsnode address ];
:local leases [ / ip dhcp-server lease find where host-name=$hostname dynamic=yes ];
- :local hostnamecount [ :len [ / ip dhcp-server lease find where host-name=$hostname dynamic=yes ] ];
+ :local hostnamecount [ / ip dhcp-server lease print count-only where host-name=$hostname dynamic=yes ];
:if ( $hostnamecount > 1) do={
:foreach j,lease in=$leases do={
:if ($j + 1 = $hostnamecount) do={