|
| 1 | +--- |
| 2 | +params: |
| 3 | + - name |
| 4 | + - example |
| 5 | +--- |
| 6 | + |
| 7 | +import { Tabs, TabItem, Render } from "~/components"; |
| 8 | + |
| 9 | +<Tabs syncKey="dashPlusAPI"> |
| 10 | +<TabItem label="Dashboard"> |
| 11 | +1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account and zone. |
| 12 | +2. Go to **DNS** > **Records** and select **Add record**. |
| 13 | +3. Select `A`, `AAAA`, or `CNAME` as the record **Type**, according to your needs: |
| 14 | + - If your hosting service has provided an IPv4 address, select `A`, use {props.name} (<code>{props.example}</code>) for the record **Name**, and insert the IPv4 address in the respective field. |
| 15 | + - If your hosting service has provided an IPv6 address, select `AAAA`, use {props.name} (<code>{props.example}</code>) for the record **Name**, and insert the IPv6 address in the respective field. |
| 16 | + - 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 {props.name} (<code>{props.example}</code>) for the record **Name**, and insert the hostname in the **Target** field. |
| 17 | +4. Specify the **Proxy status** and **TTL** according to your needs. |
| 18 | +5. Select **Save** to confirm. |
| 19 | +</TabItem> |
| 20 | +<TabItem label="API"> |
| 21 | +Use the [Create DNS Record API endpoint](/api/operations/dns-records-for-a-zone-create-dns-record). |
| 22 | +<Render file="api-field-definitions" /> |
| 23 | + - If your hosting service has provided an IPv4 address, select **A Record**, use {props.name} (<code>{props.example}</code>) for the field `name`, and use the IPv4 address for the field `content`. |
| 24 | + - If your hosting service has provided an IPv6 address, select **AAAA Record**, use {props.name} (<code>{props.example}</code>) for the field `name`, and use the IPv6 address for the field `content`. |
| 25 | + - 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 {props.name} (<code>{props.example}</code>) for the field `name`, and use the hostname for the field `content`. |
| 26 | +</TabItem> |
| 27 | +</Tabs> |
0 commit comments