Mobile app version of vmapp.org
Login or Join
Barnes591

: Subdomain on another server cPanel A Record & Cloudflare I have created an A record to point to another server for a subdomain to be hosted separately from the actual domain name. I created

@Barnes591

Posted in: #Cloudflare #Dns

I have created an A record to point to another server for a subdomain to be hosted separately from the actual domain name.

I created this on cPanel but I also have Cloudflare enabled. I subdomain doesn't seem to resolve, do I need to create an A record on Cloudflare as well? Are there any particular dns tools I can use to debug?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Barnes591

1 Comments

Sorted by latest first Latest Oldest Best

 

@Turnbaugh106

Since your DNS will be hosted with Cloudflare, you must create an A RECORD within Cloudflare and then within cPanel you must make a subdomain or in WHM another account. There are no DNS entries required within cPanel because your DNS is not managed by it.

Adding an add-on or subdomain within cPanel will setup the virtual host file to work with the A record you are pointing to the server.

6 Step Process setting up subdomain in cPanel


Login to cPanel
Scroll down to domains and click subdomains.
Fill in the subdomain entry, with just the alias of the subdomain.
Select the correct domain for the subdomain if you have multiples attached to your account.
Assign a working root for the subdoman.
Click Create.


7 Step Cloudflare Process in creating a subdomain using A RECORD pointing to IP address:


Login to Cloudflare
Use the drop-down menu in the upper left of your screen and click your domain that you want to install the subdomain on.
Click the DNS icon at the top of the screen.
Select A using the drop-down options
Add the subdomain in NAME
Add the IP address of your cPanel hosting in the box labeled IPv4 Address.
Leave TTL as automatic and CloudFlare enabled or disabled if you like, click Add Record button.
Optional step, if you server also has an IPv6 IP address then repeat steps 4-7 but use an AAAA record with your server IPv6 IP.


LAST BUT LEAST... WAIT... DNS changes can take several hours to take effect (1-72 hours).

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme