English
Connect a DNS provider
Connecting a DNS provider lets you manage DNS records directly in FlashPanel and lets FlashPanel create records automatically in some cases.
FlashPanel currently supports Cloudflare.
Cloudflare
This section shows you how to create a Cloudflare API Token with the following permissions:
- Zone: Read
- DNS: Edit
- SSL and Certificates: Edit
API Tokens are a secure way to grant limited access to specific parts of your Cloudflare account.
Step 1: Log in to Cloudflare
- Open your web browser and go to https://dash.cloudflare.com/.
- Log in with your Cloudflare account.
Step 2: Open the API Tokens page
- In the Cloudflare dashboard, click your profile icon in the top-right corner.
- Select My Profile from the dropdown menu.
- In the left-hand menu, click API Tokens.
Step 3: Create a new API Token
- On the API Tokens page, click the Create Token button.
- Under Custom token, click Get started.
Step 4: Configure the API Token permissions
Name the token
- Enter a meaningful name in the Token name field, such as:
"API Token for FlashPanel".
- Enter a meaningful name in the Token name field, such as:
Add permissions in the Permissions section (click + Add more to add a row):
- Zone:
- Column 1: Zone
- Column 2: Zone
- Column 3: Read
- DNS:
- Column 1: Zone
- Column 2: DNS
- Column 3: Edit
- SSL and Certificates:
- Column 1: Zone
- Column 2: SSL and Certificates
- Column 3: Edit
- Zone:
Limit the domains (optional)
- In Zone Resources, if you want the token to apply only to specific domains, select Specific zone and choose the domains. Otherwise, leave it as All zones.
Step 5: Review and create the API Token
- Click Continue to summary.
- Review the permissions and domains.
- Click Create Token.
Step 6: Save the API Token
Once the token is created, Cloudflare displays your API Token.
Copy the token and store it securely.
Important: This is the only time you can view the token. If you lose it, you will need to create a new one.
Step 7: Add the API Token to FlashPanel
- Open the DNS Management page in FlashPanel.
- Click the Add DNS button.
- In Choose DNS Manager, select Cloudflare.
- Enter a note in the API Key Memo field (for example, "Cloudflare DNS management").
- Paste the API Token from the previous step into the API Key field.
- Click Add DNS to save.
Once saved, you can manage DNS and related SSL certificates for these domains directly in FlashPanel.
Manage DNS
After you add the API Key, the system automatically retrieves all the domains that the key is allowed to manage. The domains appear in the Domain column of the DNS list table.
- Click the domain you want to manage to open its DNS records.
- Click Add Record to create a new DNS record, or use the edit/delete buttons on each row to update or delete a record.
- If you just added a new domain at your DNS provider, click the reload icon (Update API Token information) to fetch the latest domain list.
Maybe you don't know?
When you create a new site whose domain is in the list of domains managed in FlashPanel, the system automatically creates a DNS record of type A (or AAAA for IPv6 servers) pointing to the server that hosts the site.