ReverseRecordCreator
class ReverseRecordCreator (View source)
Keeps PTR records in step with A/AAAA records: adds, updates and deletes the counterpart in the paired zone.
Methods
No description
No description
No description
Find and delete the corresponding PTR record for a given A or AAAA record
Sync the PTR record after an A/AAAA forward record was edited.
Find and delete the corresponding A or AAAA record for a given PTR record
Details
__construct(bool $reverseHandling, AuditLoggerInterface $audit, DomainRepositoryInterface $domainRepository, RecordManagerInterface $recordManager, RecordReadBackendInterface $recordBackend)
No description
array
createReverseRecord(string $name, string $type, string $content, int $zone_id, int $ttl, int $prio, string $comment = '', string $account = '', bool $finalizeZone = true, bool $audit = true, bool $validateOnly = false, Closure|null $zoneAllowed = null)
No description
string|null
getContentRev($type, $content)
No description
bool
deleteReverseRecord(string $type, string $content, string $name, Closure|null $zoneAllowed = null)
Find and delete the corresponding PTR record for a given A or AAAA record
array
updateReverseRecord(string $oldType, string $oldContent, string $oldName, string $newType, string $newContent, string $newName, int $zone_id, int $ttl, int $prio, string $comment = '', string $account = '', Closure|null $zoneAllowed = null)
Sync the PTR record after an A/AAAA forward record was edited.
Removes the stale PTR (best-effort; user may not have created one originally) and creates a new PTR for the updated IP and hostname. Returns success when no PTR-relevant fields changed.
bool
deleteForwardRecord(string $ptrName, string $ptrContent, Closure|null $zoneAllowed = null)
Find and delete the corresponding A or AAAA record for a given PTR record