From b13a53531bcd2b557b207810110b8987b93208b6 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 22 Mar 2023 09:18:06 +0100 Subject: dhcp-to-dns: just update the address The other values *should* be unchanged... --- dhcp-to-dns.rsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dhcp-to-dns.rsc') diff --git a/dhcp-to-dns.rsc b/dhcp-to-dns.rsc index 8166b0c..aa71e4c 100644 --- a/dhcp-to-dns.rsc +++ b/dhcp-to-dns.rsc @@ -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; -- cgit v1.2.3-54-g00ecf