Last Updated on May 24, 2021 by Amit

Cloudflare is a content delivery management and website performance boosting system on the web.We use Cloudflare with purposes of increasing performance and security of our website. When you add a domain to cloudflare all the external requests your domain receives reaches your web hosting server quickly via Cloudflare CDN. Cloudflare checks your domain or subdomains records before sending the request to your host. subdomain DNS records are checked So if it dosn’t exist in CF DNS database then you get the DNS error even if you have manually created the subdomain in your web hosting cpanel. In that case ,
You need to create DNS A records for that subdomain on cloudflare so that the subdomain can point the intended destination. In this post I will show you step by step how to create a subdomain in CF using DNS records.

What you will need :

  • cloudflare.com account
  • An active root domain on Cloudflare.

Steps to create a subdomain

Assuming your root domain is correctly configured on cloudflare,the following are the steps you will need to follow in order to create a subdomain:

  • Login to your cloudflare account and select the domain you want to create subdomain on
  • Go to Dashboard/DNS and press the Add a new record button . The following DNS setting page will appear on your screen:

    Create subdomain on cloudflare

    To create a subdomain, you need to edit DNS A type record, so select A from the first dropdown menu.
    Now in the name field add a name for your subdomain ie: “blog” .
    Add IP address of your web hosting provider in the content field. The IP is where your subdomain will point to. You can add the same ip as your root domain is using in A record. Copy it from your main domain dns and paste in content field and set TTL as Automatic. Now press “Save” to save your DNS settings. Thats all you need to do.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.