1
0
Fork 0
mirror of https://github.com/fernwerker/ownDynDNS.git synced 2025-07-10 06:05:13 +02:00

added TXT handling

This commit is contained in:
NiiWiiCamo 2023-08-22 12:54:07 +02:00 committed by GitHub
parent 2ee6550f2c
commit 6ea33dcbf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -152,6 +152,18 @@ final class Handler
$this->doLog(sprintf('IPv6 for %s set to %s', $record->hostname . '.' . $this->payload->getHostname(), $this->payload->getIpv6()));
$changes = true;
}
// update TXT Record if exists and content has changed
if ('TXT' === $record->type && $this->payload->getTxt() &&
(
$this->payload->isForce()
|| $record->destination !== $this->payload->getTxt()
)
) {
$record->destination = $this->payload->getTxt();
$this->doLog(sprintf('TXT for %s set to %s', $record->hostname . '.' . $this->payload->getHostname(), $this->payload->getTxt()));
$changes = true;
}
}
}