Skip to content

Create a subdomain

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.

Subdomain records

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.

TypeNameIPv4 addressProxy status
Ablog192.0.2.1Proxied
  1. Log in to the Cloudflare dashboard and select your account and zone.
  2. Go to DNS > Records and select Add record.
  3. Select A, AAAA, or CNAME as the record Type, according to your needs:
    • To point to an IPv4 address, select A, use your subdomain (blog) for the record Name, and insert the IPv4 address in the respective field.
    • To point to an IPv6 address, select AAAA, use your subdomain (blog) for the record Name, and insert the IPv6 address in the respective field.
    • To point to a fully qualified domain name (FQDN) (such as 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.
  4. Specify the Proxy status and TTL according to your needs.
  5. Select Save to confirm.