aboutsummaryrefslogtreecommitdiffstats
path: root/dhcp-to-dns.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-03-22 08:46:35 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-03-22 21:53:32 +0100
commit8c728bb6ab7ad27c223af536be50438d51ee360c (patch)
treee66870bd7858cdfb3af0ad655948e530c70b824a /dhcp-to-dns.rsc
parentaac87098814e10d4ec36ba2a77a29c2018869774 (diff)
dhcp-to-dns: do not update records based on host name
Diffstat (limited to 'dhcp-to-dns.rsc')
-rw-r--r--dhcp-to-dns.rsc7
1 files changed, 0 insertions, 7 deletions
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={