mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-08 17:14:29 +02:00
dhcp-to-dns: do not update records based on host name
This commit is contained in:
parent
aac8709881
commit
8c728bb6ab
1 changed files with 0 additions and 7 deletions
|
@ -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={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue