Skip to content

Commit 55bd61a

Browse files
Add conditional rendering for create internal zone
1 parent 023635e commit 55bd61a

File tree

3 files changed

+26
-18
lines changed

3 files changed

+26
-18
lines changed

src/content/docs/dns/internal-dns/get-started.mdx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,9 @@ Although there are some steps that can be achieved on the dashboard, currently t
4141

4242
## 1. Set up your internal DNS zone
4343

44-
1. Use the [Create Zone](/api/resources/zones/) endpoint to create an [internal zone](/dns/internal-dns/internal-zones/). Specify your account ID and set the `type` to `internal`.
45-
46-
<Details header="Internal zone configuration conditions">
47-
<Render file="internal-zones-conditions" />
48-
</Details>
49-
50-
2. Add DNS records to your internal zone using your preferred option:
51-
- [Import](/api/resources/dns/subresources/records/methods/import/) a formatted BIND file. Refer to the [DNS records how-to](/dns/manage-dns-records/how-to/import-and-export/) for guidance.
52-
- Use other API endpoints, such as [`/batch`](/api/resources/dns/subresources/records/methods/batch/), to manage DNS records. Refer to [Batch record changes](/dns/manage-dns-records/how-to/batch-record-changes/#use-the-api) for details.
53-
3. Repeat this process for each internal zone you wish to add.
44+
<Render file="internal-zone-create" params={{
45+
conditional: "get-started-detail"}}
46+
/>
5447

5548
### (Optional) Reference a zone from another zone
5649

src/content/docs/dns/internal-dns/internal-zones/setup.mdx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,9 @@ When setting up internal zones, observe the following conditions:
1717

1818
## Create an internal zone
1919

20-
1. Use the [Create Zone](/api/resources/zones/) endpoint to create an internal zone. Specify your account ID and set the `type` to `internal`.
21-
2. Add DNS records to your internal zone using your preferred option:
22-
- [Import](/api/resources/dns/subresources/records/methods/import/) a formatted BIND file. Refer to the [DNS records how-to](/dns/manage-dns-records/how-to/import-and-export/) for guidance.
23-
- Use other API endpoints, such as [`/batch`](/api/resources/dns/subresources/records/methods/batch/), to manage DNS records. Refer to [Batch record changes](/dns/manage-dns-records/how-to/batch-record-changes/#use-the-api) for details.
24-
3. Repeat this process for each internal zone you wish to add.
25-
26-
Since the resolver policy configuration will require a DNS view, you must link the internal zones to at least one view to be able to use them when routing requests to Internal DNS. For a full procedure overview, refer to [get started](/dns/internal-dns/get-started/).
27-
20+
<Render file="internal-zone-create" params={{
21+
conditional: " "}}
22+
/>
2823

2924
## Other actions
3025

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
params:
3+
- conditional
4+
---
5+
6+
import { TabItem, Tabs, Details, Example, Render, Markdown } from "~/components";
7+
8+
1. Use the [Create Zone](/api/resources/zones/) endpoint to create an [internal zone](/dns/internal-dns/internal-zones/). Specify your account ID and set the `type` to `internal`.
9+
10+
{ props.conditional === "get-started-detail" && (
11+
<Details header="Internal zone configuration conditions">
12+
<Render file="internal-zones-conditions" />
13+
</Details>
14+
)
15+
}
16+
17+
2. Add DNS records to your internal zone using your preferred option:
18+
- [Import](/api/resources/dns/subresources/records/methods/import/) a formatted BIND file. Refer to the [DNS records how-to](/dns/manage-dns-records/how-to/import-and-export/) for guidance.
19+
- Use other API endpoints, such as [`/batch`](/api/resources/dns/subresources/records/methods/batch/), to manage DNS records. Refer to [Batch record changes](/dns/manage-dns-records/how-to/batch-record-changes/#use-the-api) for details.
20+
3. Repeat this process for each internal zone you wish to add.

0 commit comments

Comments
 (0)