diff --git a/src/content/docs/dns/manage-dns-records/how-to/create-zone-apex.mdx b/src/content/docs/dns/manage-dns-records/how-to/create-zone-apex.mdx index baa6399fe72da9..d7d37770b8a688 100644 --- a/src/content/docs/dns/manage-dns-records/how-to/create-zone-apex.mdx +++ b/src/content/docs/dns/manage-dns-records/how-to/create-zone-apex.mdx @@ -6,11 +6,11 @@ sidebar: --- -import { Example } from "~/components" +import { Example, Render } from "~/components" When you add a domain to Cloudflare, you may also need to create a DNS record on your zone apex (`example.com`). -To do this, create a corresponding [`A`, `AAAA`, or `CNAME` record](/dns/manage-dns-records/how-to/create-dns-records/) using `@` for the **Name**. +To do this, create an [IP address resolution record](/dns/manage-dns-records/reference/dns-record-types/#ip-address-resolution) (`A`, `AAAA`, or `CNAME`) using `@` for the **Name**, as in the following example. @@ -20,6 +20,11 @@ To do this, create a corresponding [`A`, `AAAA`, or `CNAME` record](/dns/manage- + + ## Domain redirects Once you create a domain, you may want to route that traffic to other places. diff --git a/src/content/partials/dns/create-subdomain-record.mdx b/src/content/partials/dns/create-subdomain-record.mdx index f2f0537227b9d2..b61185f81a4cf0 100644 --- a/src/content/partials/dns/create-subdomain-record.mdx +++ b/src/content/partials/dns/create-subdomain-record.mdx @@ -3,20 +3,26 @@ --- -import { Example } from "~/components" +import { Example, Render } from "~/components"; 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. +To create a new subdomain, you would first add the subdomain content at your [host](/fundamentals/setup/manage-domains/#host-your-domain). -Then, you would create a corresponding [`A`, `AAAA`, or `CNAME` record](/dns/manage-dns-records/how-to/create-dns-records/) for that subdomain (`blog`, `store`). +Then, you would create a corresponding [IP address resolution record](/dns/manage-dns-records/reference/dns-record-types/#ip-address-resolution) (`A`, `AAAA`, or `CNAME`), specifying the subdomain (`blog`, `www`, or `store`, for example) as the record **Name**. | Type | Name | IPv4 address | Proxy status | | ---- | ----- | ------------ | ------------ | -| A | `www` | `192.0.2.1` | Proxied | +| A | `blog` | `192.0.2.1` | Proxied | + + + \ No newline at end of file diff --git a/src/content/partials/dns/dns-record-steps.mdx b/src/content/partials/dns/dns-record-steps.mdx new file mode 100644 index 00000000000000..5b7cf2f4a1cda4 --- /dev/null +++ b/src/content/partials/dns/dns-record-steps.mdx @@ -0,0 +1,27 @@ +--- +params: + - name + - example +--- + +import { Tabs, TabItem, Render, GlossaryTooltip } from "~/components"; + + + +1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) 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 {props.name} ({props.example}) for the record **Name**, and insert the IPv4 address in the respective field. + - To point to an IPv6 address, select `AAAA`, use {props.name} ({props.example}) for the record **Name**, and insert the IPv6 address in the respective field. + - To point to a [fully qualified domain name (FQDN)](https://en.wikipedia.org/wiki/Fully_qualified_domain_name) (such as `your-site.host.example.com`), select `CNAME`, use {props.name} ({props.example}) 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. + + +Use the [Create DNS Record API endpoint](/api/operations/dns-records-for-a-zone-create-dns-record). + + - To point to an IPv4 address, select **A Record**, use {props.name} ({props.example}) for the field `name`, and use the IPv4 address for the field `content`. + - To point to an IPv6 address, select **AAAA Record**, use {props.name} ({props.example}) for the field `name`, and use the IPv6 address for the field `content`. + - To point to a [fully qualified domain name (FQDN)](https://en.wikipedia.org/wiki/Fully_qualified_domain_name) (such as `your-site.host.example.com`), select **CNAME Record**, use {props.name} ({props.example}) for the field `name`, and use the fully qualified domain name for the field `content`. + + \ No newline at end of file