Configure CyberPanel DNS server using Cloudflare

Table of Contents

CyberPanel has a feature to synchronize changes in DNS records. This is so that you don’t need to connect to Cloudflare to also update the records. The DNS records of your sites are automatically propagated between Cloudflare and CyberPanel.

Note that changes to DNS zones in Cloudflare will not be passed on to CyberPanel DNS zones. You must therefore modify the DNS records from CyberPanel.

To do this, log into your Cloudflare account, then go to the My Profile tab.

Configure CyberPanel DNS server using Cloudflare

On the right, select API Tokens and go to Global API Key then display

Configure CyberPanel DNS server using Cloudflare

If you do not see the option to display, you must create the API token by clicking on Create Token at the top.

Once you have the API token, you need to log into CyberPanel this time.

Configure CyberPanel DNS server using Cloudflare

Click on Cloudflare, then enter the API token you just copied to Cloudflare.

Configure CyberPanel DNS server using Cloudflare

Enter the email address you used on Cloudflare. Then the API token and select the enable option to activate the synchronization, then save.

Configure the CyberPanel DNS server

Configuring CyberPanel’s DNS server correctly is crucial to ensure the proper functioning of your websites and domain name resolution.

Still on the CyberPanel dashboard, go to the DNS option, then add/remove records.

Add an A record for the domain.

Add a CNAME record for the subdomain “www”.

Set up MX records for email (if necessary).

Add more DNS records if necessary (TXT, SRV, etc.).

Create a DNS zone on CyberPanel

Creating a DNS zone is usually used to add a domain that only requires DNS management or mail server hosting on your server. It does not create a home directory for the domain.

You can add DNS zones in the DNS > Add Zone section.

It is important to mention that CyberPanel automatically manages the creation of DNS records when a site is created. Thus, you will not need to create these DNS records manually. And even more if you have already integrated Cloudflare-CyberPanel, the DNS records are automatically proposed.