mirror of
https://github.com/fernwerker/ownDynDNS.git
synced 2025-07-10 14:15:14 +02:00
added TXT handling
This commit is contained in:
parent
2ee6550f2c
commit
6ea33dcbf9
1 changed files with 13 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue