DomainManager
final class DomainManager implements DomainManagerInterface (View source)
Creates, updates and deletes zones for the web UI, including template records and DNSSEC setup.
Methods
Constructor
Add a domain to the database
Request an immediate AXFR transfer of a secondary zone from its master.
Ask PowerDNS to send NOTIFY for a primary zone now.
Change Zone Type
Change Slave Zone's Master IP Address
Give a zone of a user being deleted to another user; where the user's row carries the zone (API backend) it changes owner, otherwise the new owner is added
Add a user as an owner of a zone. An existing owner is left as is and reported as success.
Apply a zone template to a zone, or unlink it with template id 0.
Details
__construct(TransactionInterface $transaction, ConfigurationInterface $config, DomainRepositoryInterface $domainRepository, RepositoryFactoryInterface $repositoryFactory, DnsBackendProviderInterface $backendProvider, PermissionService $permissionService, UserLookupInterface $userRepository, RecordChangeWriterInterface $changeLogger, ZoneTemplateApplier $templateApplier, ZoneTemplateRepositoryInterface $zoneTemplateRepository, ZoneTemplatePlaceholders $placeholders, ZoneTemplateSyncRepositoryInterface $templateSync, TemplateRecordLinkRepositoryInterface $templateLinks, ZoneGroupRepositoryInterface $zoneGroups, ZoneAccountSyncService $accountSync, ActorInterface $actor, LoggerInterface|null $logger = null, ZoneCacheFlusherInterface|null $zoneCacheFlusher = null, ZoneOwnershipLimit|null $ownershipLimit = null)
Constructor
ZoneWriteResult
addDomain(string $domain, int|null $owner, string $type, string $slave_master, int|string $zone_template, array $groupIds = [], string|null $soaEditApi = null)
Add a domain to the database
bool
retrieveZone(int $id)
Request an immediate AXFR transfer of a secondary zone from its master.
bool
notifyZone(int $id)
Ask PowerDNS to send NOTIFY for a primary zone now.
ZoneWriteResult
changeZoneType(string $type, int $id)
Change Zone Type
ZoneWriteResult
changeZoneSlaveMaster(int $zone_id, string $ip_slave_master)
Change Slave Zone's Master IP Address
ZoneWriteResult
handOverZone(int $zone_id, int $from_user_id, int $to_user_id)
Give a zone of a user being deleted to another user; where the user's row carries the zone (API backend) it changes owner, otherwise the new owner is added
ZoneWriteResult
addOwnerToZone(int $zone_id, int $user_id)
Add a user as an owner of a zone. An existing owner is left as is and reported as success.
ZoneWriteResult
updateZoneRecords(int $dns_ttl, int $zone_id, int $zone_template_id)
Apply a zone template to a zone, or unlink it with template id 0.