mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
dhcp-to-dns: just update the address
The other values *should* be unchanged...
This commit is contained in:
parent
c5c235246b
commit
b13a53531b
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ $ScriptLock $0 false 10;
|
|||
$LogPrintExit2 debug $0 ("DNS entry for " . ($MacDash . "." . $Domain) . " does not need updating.") false;
|
||||
} else={
|
||||
$LogPrintExit2 info $0 ("Replacing DNS entry for " . ($MacDash . "." . $Domain) . ", new address is " . $LeaseVal->"address" . ".") false;
|
||||
/ip/dns/static/set name=($MacDash . "." . $Domain) address=($LeaseVal->"address") ttl=$Ttl comment=$Comment $DnsRecord;
|
||||
/ip/dns/static/set address=($LeaseVal->"address") $DnsRecord;
|
||||
}
|
||||
} else={
|
||||
$LogPrintExit2 info $0 ("Adding new DNS entry for " . ($MacDash . "." . $Domain) . ", address is " . $LeaseVal->"address" . ".") false;
|
||||
|
|
Loading…
Reference in a new issue