Integrating Cloudflare DNS with Your Shared Hosting Control Panel
Notice: If you would like us to add your domain to our Cloudflare account and manage it completely, please contact us. We’ll handle all configuration on your behalf. You’ll just need to update your Name Servers with your Domain Registrar. Alternatively, (though not required) you can transfer your domain to us, and we’ll manage the Name Server changes directly.
Integrating Cloudflare DNS with your shared hosting environment enhances site performance and security by leveraging Cloudflare’s global network while managing DNS directly from your hosting control panel. Follow these steps to set up Cloudflare with the necessary permissions.
Step 1: Obtain a Cloudflare API Token with Required Permissions
To integrate Cloudflare DNS, you need an API token with specific permissions.
-
Log into Your Cloudflare Account
- Visit Cloudflare's dashboard and log in.
-
Navigate to API Tokens
- Click on your profile icon in the top right corner and select My Profile.
- In the left sidebar, select API Tokens.
-
Create a New Custom Token
- Scroll down and click Get Started at the bottom under Create Custom Token.
-
Name and Set Permissions
- Enter LSDR Integration as the token name.
- Under Permissions, select Zone from the dropdown, then Zone next to it, and Edit for the action (so it reads “Zone Zone Edit”).
- Click Add More and set Zone > DNS > Edit to add DNS editing permissions.
-
Specify Resources
- Under Resources, choose Include and select All Zones.
-
Skip Client Filtering and TTL
- Do not apply any client filtering or set TTL.
-
Continue and Review
- Click Continue to Summary to review your settings. The summary should read: All Zones - Zone
- Click Continue to Summary to review your settings. The summary should read: All Zones - Zone
-
Create and Copy the Token
- Click Create Token and copy it immediately; you won’t be able to view it again.
Step 2: Add the API Token to Your Shared Hosting Control Panel
With the Cloudflare API token ready, follow these steps to integrate it with your shared hosting control panel.
-
Log into the Shared Hosting Control Panel
- Access the control panel at
https://cp.lonestardataranch.com
and log in.
- Access the control panel at
-
Access Integrations
- In the left-hand menu, click Integrations.
- Select Cloudflare from the integration options.
-
Add Your API Token
- Under Cloudflare API Tokens, click Add.
- Enter a friendly name (e.g., “My Cloudflare Token”), paste the API token, and click Save.
Step 3: Assign the Integration to Your Domain
⚠️ WARNING: Once you assign the token to a domain, it will overwrite any existing DNS records for that domain on Cloudflare. Ensure all DNS settings are correctly configured in the shared hosting control panel before assigning the token. If you have custom DNS records, such as MX records, configured on Cloudflare, consult support if you’re unsure.
-
Navigate to Websites
- In the left-hand menu, click Websites.
-
Select Your Website
- Choose the website for which you want to control DNS.
-
Go to Domain Management
- Click Domains from the top navigation bar.
- Click on the domain name you’d like to manage.
-
Assign the Cloudflare API Token
- Directly under the domain name, locate the dropdown labeled Select API Token with the Cloudflare logo.
- Click the dropdown and select the friendly name you assigned to the Cloudflare API token.
Note: Assigning the token here will immediately overwrite existing DNS records on Cloudflare, including any custom DNS configurations. Contact support with any questions prior to making this change.
Step 4: Manage DNS Records
After integration, manage your DNS records through the shared hosting control panel. Changes made here will sync with Cloudflare.
-
Add a Record
- Click Add under DNS Records, enter the type, name, and value, then save.
-
Edit a Record
- Click the three dots next to a record and select Edit to update details.
-
Delete a Record
- Use the same menu to delete records as needed.
Additional Considerations
- Propagation Time: DNS changes may take time to propagate globally.
- SSL Configuration: Ensure SSL settings are compatible with Cloudflare’s proxy features.
- Support: If you have questions, contact our support team for further assistance.
By following these steps, you can integrate Cloudflare DNS with your shared hosting control panel and easily manage DNS records while benefiting from Cloudflare’s speed and security. For any additional questions, reach out to our support team.