class RecordTypeService (View source)

Methods

__construct(ConfigurationInterface $configManager)

No description

array
getAllTypes(PdnsCapabilities|null $caps = null)

Get all record types.

array
getDomainZoneTypes(bool $isDnsSecEnabled, PdnsCapabilities|null $caps = null, bool $includeSoa = true)

Get domain zone record types.

array
getReverseZoneTypes(bool $isDnsSecEnabled, PdnsCapabilities|null $caps = null, bool $includeSoa = true)

Get reverse zone record types.

array
getDeprecatedTypes()

Get deprecated record types.

Details

__construct(ConfigurationInterface $configManager)

No description

Parameters

ConfigurationInterface $configManager

array getAllTypes(PdnsCapabilities|null $caps = null)

Get all record types.

Parameters

PdnsCapabilities|null $caps

Filter out types the connected server does not support. Pass null to skip filtering (e.g. from contexts that don't have access to the session-cached PowerDNS version).

Return Value

array

array getDomainZoneTypes(bool $isDnsSecEnabled, PdnsCapabilities|null $caps = null, bool $includeSoa = true)

Get domain zone record types.

Parameters

bool $isDnsSecEnabled
PdnsCapabilities|null $caps

See getAllTypes().

bool $includeSoa

Set false in add-record flows; SOA is auto-created with the zone and PowerDNS allows only one.

Return Value

array

array getReverseZoneTypes(bool $isDnsSecEnabled, PdnsCapabilities|null $caps = null, bool $includeSoa = true)

Get reverse zone record types.

Parameters

bool $isDnsSecEnabled
PdnsCapabilities|null $caps

See getAllTypes().

bool $includeSoa

See getDomainZoneTypes().

Return Value

array

array getDeprecatedTypes()

Get deprecated record types.

Return Value

array