interface SerialBackendInterface (View source)

SOA serial handling: whether PowerDNS bumps the serial itself and the zone serial policy metadata.

Methods

bool
hasSoaEditApi(int $domainId)

Check whether the zone has soa_edit_api configured in PowerDNS.

bool
setZoneSerialPolicy(int $domainId, string $zoneName, array $properties)

Set the zone's SOA serial policy metadata.

Details

bool hasSoaEditApi(int $domainId)

Check whether the zone has soa_edit_api configured in PowerDNS.

Returns false for SQL backends (not applicable).

Parameters

int $domainId

Return Value

bool

bool setZoneSerialPolicy(int $domainId, string $zoneName, array $properties)

Set the zone's SOA serial policy metadata.

Keys are the zone-object property names from MetadataDefinitions::SERIAL_POLICY_PROPERTY_KINDS. An empty string clears the policy. API backend updates the zone object; SQL backend replaces the matching domainmetadata rows.

Parameters

int $domainId
string $zoneName
array $properties

Return Value

bool