ZoneAccountSyncService
class ZoneAccountSyncService (View source)
Service for mirroring zone ownership into the PowerDNS account field
Methods
No description
Whether owner-to-account sync is active (opt-in via dns.sync_zone_owner_to_account)
Update the zone's PowerDNS account field with the oldest owner's username
Push a resolved owner username to the backend, for callers with their own ownership lookup. Zones without a direct owner get an empty account so removed users don't linger.
Details
__construct(PDO $db, ConfigurationInterface $config, DnsBackendProvider|null $backendProvider = null)
No description
bool
isEnabled()
Whether owner-to-account sync is active (opt-in via dns.sync_zone_owner_to_account)
void
syncZoneAccount(int $domainId)
Update the zone's PowerDNS account field with the oldest owner's username
void
pushZoneAccount(int $domainId, string|null $username)
Push a resolved owner username to the backend, for callers with their own ownership lookup. Zones without a direct owner get an empty account so removed users don't linger.