# PowerDNS
PanelAlpha users have the option utilize the "DNS Zone Editor". This option can be found under "My Hosting" tab in the client area. In order to make the feature work smoothly, you need to firstly set up a DNS server in the plan.
In case there is either cPanel, DirectAdmin or Plesk server set up as a DNS server, you do not have to configure a separate DNS server (in our case - PowerDNS) because cPanel, DA and Plesk (if properly configured beforehand!) may also play the role of the hosting server, email server and DNS server at the same time.
In case the "PanelAlpha Engine For Docker" is set up as DNS server, configuring for example PowerDNS is obligatory as "PanelAlpha Engine For Docker" does not have other roles in contrast to for example cPanel.
# Server configuration
To configure PowerDNS, proceed to your admin panel → Configuration → Servers → DNS Servers.
Press "Add DNS Server" button, a short form will appear.
Type in the DNS server name and then select PowerDNS from the type dropdown menu. Then API URL, API Key and Server fields will appear. Type in all the necessary data and press "Add Server" to confirm.
API URL - default URL http://POWERDNS_SERVER_HOSTNAME:8081/api/v1
API Token - use the token that you are using in the pddns.conf
Server - the same one as the one used in PowerDNS, by default that is localhost
# Plan configuration
PowerDNS configuration is now ready. You may now set PowerDNS server as DNS server per single plan.
To do so, proceed to: PanelAlpha admin area → Configuration → Plans → Edit Plan → DNS tab. There choose the DNS server type from the list of available. If previous steps have been successfully performed, PowerDNS server should be visible on the list, just select it and save the changes.
Important! If you intend to use the PowerDNS server as a DNS server in a Plan with the Quick Onboarding method selected, you must first add a zone for a domain that will be assigned to Quick Onboarding and set up a wildcard in this zone, directly within PowerDNS.
Exemplary Flow:
- An admin user is about to create a Plan using the Quick Onboarding method.
- Domain for instance installation: 2138.online.
- The admin must create a zone in PowerDNS within the above domain and set up a wildcard.
- Zones for subdomains created together with the installations will be created automatically.
On the screen below, you can see an example of a domain with zones created in PowerDNS: