# Cloudflare
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 - Cloudflare) because cPanel, DirectAdmin 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 Cloudflare is obligatory as "PanelAlpha Engine For Docker" does not have other roles in contrast to for example cPanel.
# Server configuration
To configure Cloudflare, proceed to your admin panel → Configuration → Servers → DNS Servers.
Press "Add DNS Server" button, and a short form will appear.
Type in the DNS server name and then select Cloudflare from the type dropdown menu. Fill out the fields to complete the configuration:
- API Token - read more here (opens new window) to learn how to create the token.
Here are the minimum permissions suggested for the created token:- Account - Account Settings → Read
- Zone - Zone Settings → Edit
- Zone- Zone → Edit
- Zone - Cache Purge → Purge
- Zone - DNS → Edit
- Account ID - manually add the account ID number, which you can find in Cloudflare → Zone → Account ID (located in the bottom right corner). Note that providing the ID is optional, as PanelAlpha automatically fetches it based on the provided account API token.
Test the connection and if successful press the "Add DNS Server" to confirm.
Important: Please be aware that subdomains are not supported.
# Plan configuration
Cloudflare configuration is now ready. You may now set Cloudflare 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, Cloudflare server should be visible on the list, just select it and save the changes.