How to set up Cloudflare DNS for your domain

By Angus Published 23 June 2025 Updated 24 February 2026 4 min read

Cloudflare provides DNS management with built-in security features and a content delivery network that speeds up your site. Setting up Cloudflare requires adding your domain to their platform, configuring DNS records and updating your nameservers.

You will connect your domain to Cloudflare’s network and configure DNS records to route traffic through their infrastructure. This gives you access to features like DDoS protection and free CDN caching.

Before you begin

Add your domain to Cloudflare

You need to register your domain with Cloudflare before you can manage its DNS records. Cloudflare will scan your existing DNS configuration and import the records automatically.

  1. Log in to your Cloudflare account.
    Access the dashboard at dash.cloudflare.com/login using your Cloudflare credentials.
  2. Enter your domain name.
    Type your domain into the Enter your site field and click Add site. Cloudflare will begin scanning your current DNS records.
  3. Select a plan.
    Choose the Free plan or any paid plan that matches your requirements. Click Continue to proceed with the selected plan.
Cloudflare dashboard showing the Add site field where users enter their domain name
Enter your domain in the Add site field.
Cloudflare plan selection screen displaying Free and paid plan options
Select a plan for your domain.

Import DNS records

Cloudflare automatically scans and imports most DNS records during setup. You can also upload a DNS zone file if you exported one from your previous DNS provider.

  1. Review the imported records.
    Cloudflare displays all DNS records it found during the scan. Check that your A records, MX records and other entries appear correctly.
  2. Upload a zone file (optional).
    If you have a DNS zone file, drag and drop it into the upload box. This imports all records from the file at once instead of adding them manually.
  3. Continue to activation.
    Click Continue to Activation once you have verified or imported your DNS records. This moves you to the nameserver configuration step.
Cloudflare DNS zone file upload interface with drag and drop area
Upload a DNS zone file to import records.
Cloudflare DNS records review page with Continue to Activation button highlighted
Click Continue to Activation after reviewing records.

Update your nameservers

Changing your domain’s nameservers to Cloudflare’s servers activates their DNS management and routes traffic through their network. You make this change at your domain registrar.

  1. Copy the Cloudflare nameservers.
    Cloudflare displays two nameserver addresses on the activation page. These typically look like name1.ns.cloudflare.com and name2.ns.cloudflare.com. Copy both addresses.
  2. Log in to your domain registrar.
    Access your domain registrar’s control panel where you purchased or manage your domain name.
  3. Replace the existing nameservers.
    Find the nameserver settings for your domain and replace the current nameservers with the two Cloudflare nameservers you copied. Save the changes.
  4. Verify the nameserver update.
    Return to Cloudflare and click Done, check nameservers. Cloudflare will verify that your nameservers point to their network.
Cloudflare nameserver configuration page showing two nameserver addresses to copy
Copy the Cloudflare nameservers to update at your registrar.

Nameserver changes take between a few minutes and 48 hours to propagate globally. You can check DNS propagation status using online tools to monitor when the changes complete.

Wrapping up

Your domain now uses Cloudflare for DNS management. You added your site to Cloudflare, imported DNS records and updated your nameservers to route traffic through their network. Your site benefits from Cloudflare’s security features and content delivery network.

Monitor your site over the next 24 hours to confirm DNS changes have propagated. Check that your website loads correctly and email delivery continues without interruption. Our web hosting plans work seamlessly with Cloudflare’s DNS services.

If you run into any trouble, get in touch and our team will be happy to help.

Ready to get started?

Launch your website with our reliable cPanel hosting with unlimited bandwidth and expert support.

Get cPanel Hosting

Need a domain?

Find and register the perfect domain name for your website.

Search Domains