大网数据广告活动
网站运营与故障问答

Subdomain on another server cPanel A Record & Cloudflare

· 52CE 我爱测

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 nee…

问题原文

原帖链接 · Abu Nooh · CC BY-SA 3.0

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?

已采纳解答

原帖链接 · Simon Hayter · CC BY-SA 3.0

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

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

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

  1. Login to Cloudflare
  2. Use the drop-down menu in the upper left of your screen and click your domain that you want to install the subdomain on.
  3. Click the DNS icon at the top of the screen.
  4. Select A using the drop-down options
  5. Add the subdomain in NAME
  6. Add the IP address of your cPanel hosting in the box labeled IPv4 Address.
  7. Leave TTL as automatic and CloudFlare enabled or disabled if you like, click Add Record button.
  8. 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).

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2017-05-04)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。