Skip to content

Commit 1faf179

Browse files
Add Tabs and fill in Dash and API steps for create-zone-apex
1 parent 2456719 commit 1faf179

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

src/content/docs/dns/manage-dns-records/how-to/create-zone-apex.mdx

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ sidebar:
66

77
---
88

9-
import { Example } from "~/components"
9+
import { Example, Tabs, TabItem, Render } from "~/components"
1010

1111
When you add a domain to Cloudflare, you may also need to create a DNS record on your zone apex (`example.com`).
1212

13-
To do this, create a corresponding [`A`, `AAAA`, or `CNAME` record](/dns/manage-dns-records/how-to/create-dns-records/) using `@` for the **Name**.
13+
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.
1414

1515
<Example>
1616

@@ -20,6 +20,26 @@ To do this, create a corresponding [`A`, `AAAA`, or `CNAME` record](/dns/manage-
2020

2121
</Example>
2222

23+
<Tabs syncKey="dashPlusAPI">
24+
<TabItem label="Dashboard">
25+
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account and zone.
26+
2. Go to **DNS** > **Records** and select **Add record**.
27+
3. Select `A`, `AAAA`, or `CNAME` as the record **Type**, according to your needs:
28+
- If your hosting service has provided an IPv4 address, select `A`, use `@` for the record **Name**, and insert the IPv4 address in the respective field.
29+
- If your hosting service has provided an IPv6 address, select `AAAA`, use `@` for the record **Name**, and insert the IPv6 address in the respective field.
30+
- If your hosting service has provided a hostname (or a [fully qualified domain name](https://en.wikipedia.org/wiki/Fully_qualified_domain_name)), select `CNAME`, use `@` for the record **Name**, and insert the hostname in the **Target** field.
31+
4. Specify the **Proxy status** and **TTL** according to your needs.
32+
5. Select **Save** to confirm.
33+
</TabItem>
34+
<TabItem label="API">
35+
Use the [Create DNS Record API endpoint](/api/operations/dns-records-for-a-zone-create-dns-record).
36+
<Render file="api-field-definitions" />
37+
- If your hosting service has provided an IPv4 address, select **A Record**, use `@` for the field `name`, and use the IPv4 address for the field `content`.
38+
- If your hosting service has provided an IPv6 address, select **AAAA Record**, use `@` for the field `name`, and use the IPv6 address for the field `content`.
39+
- If your hosting service has provided a hostname (or a [fully qualified domain name](https://en.wikipedia.org/wiki/Fully_qualified_domain_name)), select **CNAME Record**, use `@` for the field `name`, and use the hostname for the field `content`.
40+
</TabItem>
41+
</Tabs>
42+
2343
## Domain redirects
2444

2545
Once you create a domain, you may want to route that traffic to other places.

0 commit comments

Comments
 (0)