# 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.
# 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 Cloudlfare from the type dropdown menu. Then the API Token field will appear, read more here (opens new window) to learn how to create the token. Here are the minimium permissions suggested for the created token:
- Account - Acount Settings → Read
- Zone - Zone Settings → Edit
- Zone- Zone → Edit
- Zone - Cache Purge → Purge
- Zone - DNS → Edit
Important: Please be aware that subdomains are not supported.
Once created, paste the API token in the required field, test the connection and if successfull press the "Add DNS Server" to confirm. 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.