diff options
author | Christian Hesse <mail@eworm.de> | 2023-04-12 23:21:51 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-04-24 22:26:26 +0200 |
commit | 517bb4ede8192b2e6bce765f56fa684581f998e3 (patch) | |
tree | addb753ab36a09095ab7a9d4909a694fc85e2248 /dhcp-to-dns.rsc | |
parent | 4c416cb39eac3981ef2d5db727b45f3dcfdda4c4 (diff) |
dhcp-to-dns: get all values of dns record
Diffstat (limited to 'dhcp-to-dns.rsc')
-rw-r--r-- | dhcp-to-dns.rsc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcp-to-dns.rsc b/dhcp-to-dns.rsc index e6970ff..8a2cf0b 100644 --- a/dhcp-to-dns.rsc +++ b/dhcp-to-dns.rsc @@ -74,9 +74,9 @@ $ScriptLock $0 false 10; :local DnsRecord [ /ip/dns/static/find where comment=$Comment (!type or type=A) ]; :if ([ :len $DnsRecord ] > 0) do={ - :local DnsIp [ /ip/dns/static/get $DnsRecord address ]; + :local DnsRecordVal [ /ip/dns/static/get $DnsRecord ]; - :if ($DnsIp = $LeaseVal->"address") do={ + :if ($DnsRecordVal->"address" = $LeaseVal->"address") do={ $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; |