aboutsummaryrefslogtreecommitdiffstats
path: root/dhcp-to-dns
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-09-05 09:14:41 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-09-11 12:36:47 +0200
commit23b38fa15ab7c0b39dfeabbf2f45c69f94115ec6 (patch)
treea518f28cd047df4c36ceb7e7cd0d4bf6fb9b7c90 /dhcp-to-dns
parentc7c5da2eca693db96518f5cef92fa5374d2415a9 (diff)
dhcp-to-dns: find duplicate leases by mac-address
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 cd3b793..7cd7fa0 100644
--- a/dhcp-to-dns
+++ b/dhcp-to-dns
@@ -44,7 +44,7 @@
:if ([ :len $DnsRecord ] > 0) do={
:local DnsIp [ / ip dns static get $DnsRecord address ];
- :local HostLeases [ / ip dhcp-server lease find where host-name=($LeaseVal->"host-name") dynamic=yes ];
+ :local HostLeases [ / ip dhcp-server lease find where mac-address=($LeaseVal->"mac-address") dynamic=yes ];
:if ([ :len $HostLeases ] > 1) do={
:set ($LeaseVal->"address") [ / ip dhcp-server lease get ($HostLeases->([ :len $HostLeases ] - 1)) address ];
}