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:
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()));
|
$this->doLog(sprintf('IPv6 for %s set to %s', $record->hostname . '.' . $this->payload->getHostname(), $this->payload->getIpv6()));
|
||||||
$changes = true;
|
$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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,4 +200,4 @@ final class Handler
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue