ZoneWriteBackendInterface
interface ZoneWriteBackendInterface (View source)
Zone create, delete, kind, primary, account and AXFR-retrieve writes against the DNS backend.
Methods
Create a new zone in the DNS backend.
Delete a zone and all its associated DNS data (records, metadata, cryptokeys).
Change zone type (NATIVE, MASTER, SLAVE, PRODUCER, CONSUMER).
Update slave zone's master IP address.
Request an immediate AXFR transfer of a secondary (slave) zone from its master.
Queue a NOTIFY to the secondaries of a primary zone.
Update zone account field.
Details
int|false
createZone(string $domain, string $type, string $slaveMaster = '')
Create a new zone in the DNS backend.
bool
deleteZone(int $domainId, string $zoneName)
Delete a zone and all its associated DNS data (records, metadata, cryptokeys).
Does NOT delete Poweradmin-internal data (zones table, records_zone_templ, etc.)
- those are handled by the caller.
bool
updateZoneType(int $domainId, string $type)
Change zone type (NATIVE, MASTER, SLAVE, PRODUCER, CONSUMER).
Masters are cleared unless the new kind replicates from a primary.
bool
updateZoneMaster(int $domainId, string $masterIp)
Update slave zone's master IP address.
bool
retrieveZone(int $domainId)
Request an immediate AXFR transfer of a secondary (slave) zone from its master.
Needs a configured PowerDNS API. Without one the SQL backend returns false, since PowerDNS then pulls secondaries on its own refresh schedule.
bool
notifyZone(int $domainId)
Queue a NOTIFY to the secondaries of a primary zone.
Needs a configured PowerDNS API; without one the SQL backend returns false.
bool
updateZoneAccount(int $domainId, string $account)
Update zone account field.