Type | Name | IPv4 address | Proxy status |
---|---|---|---|
A | blog | 192.0.2.1 | Proxied |
Most subdomains serve a specific purpose within the overall context of your website. For example, blog.example.com
might be your blog, support.example.com
could be your customer help portal, and store.example.com
would be your e-commerce site.
To create a new subdomain, you would first add the subdomain content at your host.
Then, you would create a corresponding IP address resolution record (A
, AAAA
, or CNAME
), specifying the subdomain (blog
, www
, or store
, for example) as the record Name.
Type | Name | IPv4 address | Proxy status |
---|---|---|---|
A | blog | 192.0.2.1 | Proxied |
A
, AAAA
, or CNAME
as the record Type, according to your needs:
A
, use your subdomain (blog
) for the record Name, and insert the IPv4 address in the respective field.AAAA
, use your subdomain (blog
) for the record Name, and insert the IPv6 address in the respective field.your-site.host.example.com
), select CNAME
, use your subdomain (blog
) for the record Name, and insert the fully qualified domain name in the Target field.Use the Create DNS Record API endpoint.
For field definitions, refer to the API documentation (visible once you select the record type under the request body specification).
blog
) for the field name
, and use the IPv4 address for the field content
.blog
) for the field name
, and use the IPv6 address for the field content
.your-site.host.example.com
), select CNAME Record, use your subdomain (blog
) for the field name
, and use the fully qualified domain name for the field content
.For more guidance on redirecting a subdomain — either to your main domain or another location — refer to Set up subdomain redirects.
If your main domain is using Cloudflare’s Universal SSL certificate, that certificate also covers all first-level subdomains (blog.example.com
).
For deeper subdomains (dev.blog.example.com
), use a different type of certificate.
If you want to customize Cloudflare settings for individual subdomains, your approach will vary depending on your plan.
Enterprise customers can set up custom settings and access for a specific subdomain within Cloudflare with Subdomain support.
All other customers can set up subdomain-specific Configuration Rules or Page Rules to alter Cloudflare settings.
If you want a subdomain’s DNS settings managed totally outside of Cloudflare — meaning this subdomain can be managed by individuals without access to your Cloudflare account — refer to Delegating subdomains outside of Cloudflare.