From 8c728bb6ab7ad27c223af536be50438d51ee360c Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 22 Mar 2023 08:46:35 +0100 Subject: dhcp-to-dns: do not update records based on host name --- dhcp-to-dns.rsc | 7 ------- 1 file changed, 7 deletions(-) (limited to 'dhcp-to-dns.rsc') diff --git a/dhcp-to-dns.rsc b/dhcp-to-dns.rsc index ee12697..8f5b842 100644 --- a/dhcp-to-dns.rsc +++ b/dhcp-to-dns.rsc @@ -74,13 +74,6 @@ $ScriptLock $0 false 10; :set ($LeaseVal->"address") [ /ip/dhcp-server/lease/get ($DupMacLeases->([ :len $DupMacLeases ] - 1)) address ]; } - :if ([ :len ($LeaseVal->"host-name") ] > 0) do={ - :local HostNameLeases [ /ip/dhcp-server/lease/find where host-name=($LeaseVal->"host-name") status=bound ]; - :if ([ :len $HostNameLeases ] > 1) do={ - :set ($LeaseVal->"address") [ /ip/dhcp-server/lease/get ($HostNameLeases->0) address ]; - } - } - :if ($DnsIp = $LeaseVal->"address") do={ $LogPrintExit2 debug $0 ("DNS entry for " . ($MacDash . "." . $Domain) . " does not need updating.") false; } else={ -- cgit v1.2.3-54-g00ecf