class DomainRecordCreator (View source)

Constants

private IPV4_SUFFIX

private IPV6_SUFFIX

Methods

__construct(ConfigurationManager $config, DomainRepositoryInterface $domainRepository, RecordManagerInterface $recordManager, IPAddressValidator|null $ipValidator = null, ReverseTtlResolver|null $reverseTtlResolver = null)

No description

array
addDomainRecord(string $name, string $type, string $content, int $zone_id, string $comment = '', string $account = '')

Create a matching A/AAAA record in the forward zone when adding a PTR record.

Details

__construct(ConfigurationManager $config, DomainRepositoryInterface $domainRepository, RecordManagerInterface $recordManager, IPAddressValidator|null $ipValidator = null, ReverseTtlResolver|null $reverseTtlResolver = null)

No description

Parameters

ConfigurationManager $config
DomainRepositoryInterface $domainRepository
RecordManagerInterface $recordManager
IPAddressValidator|null $ipValidator
ReverseTtlResolver|null $reverseTtlResolver

array addDomainRecord(string $name, string $type, string $content, int $zone_id, string $comment = '', string $account = '')

Create a matching A/AAAA record in the forward zone when adding a PTR record.

Parameters

string $name

PTR record name - accepts both relative ("55") and FQDN ("55.2.0.192.in-addr.arpa")

string $type

Record type (must be "PTR")

string $content

Forward hostname the PTR points to (e.g. "host.example.com")

int $zone_id

Reverse zone ID

string $comment

Optional record comment

string $account

Optional account name for logging

Return Value

array