Skip to content

Commit 6aaaf90

Browse files
Overall review and add conditions to view creation partial
1 parent 3ddc1ba commit 6aaaf90

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ Since the resolver policy will require a [DNS view](/dns/internal-dns/dns-views/
8181

8282
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
8383

84-
<Render file="internal-dns-view-create-dash"/>
84+
<Render file="internal-dns-view-create-dash" params={{
85+
conditional: "get-started-detail"}}
86+
/>
8587

8688
</TabItem> <TabItem label="API">
8789

@@ -122,4 +124,6 @@ Use the rule settings object to define `resolve_dns_internally`, specifying `vie
122124
- `none`: Gateway DNS resolver returns the response as-is to the client.
123125
- `public_dns`: In case the response from the internal zone is REFUSED, NXDOMAIN, or a response with a CNAME type, Gateway DNS resolver sends the query to Cloudflare 1.1.1.1 public resolver and tries to resolve the query via public DNS.
124126

125-
</TabItem> </Tabs>
127+
</TabItem> </Tabs>
128+
129+
Once you add the Gateway resolver policy, it will be listed in the respective internal view under **Resolver policies referencing this view**.
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
---
2-
{}
3-
2+
params:
3+
- conditional?
44
---
55

6+
import { Details, Render } from "~/components";
7+
68
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/login) and select an account.
79
2. Go to **Internal DNS** > **Views**.
810
3. Select **Create a view**.
911
4. Give your view a descriptive name.
12+
13+
{ props.conditional === "get-started-detail" && (
14+
<Details header="DNS view configuration conditions">
15+
<Render file="internal-dns-view-conditions" />
16+
</Details>
17+
)
18+
}
19+
1020
5. Select **Manage zones** to add zones to your view. Select the internal zones that should be used to resolve queries sent by Gateway resolver to this view
1121
6. Choose **Save** to confirm.

src/content/partials/dns/internal-zone-create-dash.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { Details, Render } from "~/components";
1818

1919
4. Add DNS records to your internal zone using your preferred option:
2020
- [Import](/dns/manage-dns-records/how-to/import-and-export/) a formatted BIND file.
21-
- Select **Add a record** > **Create** under the selected record type and **Save record** after filling in the required fields. Refer to [DNS record types](/dns/manage-dns-records/reference/dns-record-types/) for details.
21+
- Select **Add a record** and choose **Create** under the record type you want to add. Refer to [DNS record types](/dns/manage-dns-records/reference/dns-record-types/) for details.
2222
5. Repeat this process for each internal zone you wish to add.
2323

2424
:::note

src/content/partials/dns/internal-zones-conditions.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
- Internal zones can contain the same [DNS record types](/dns/manage-dns-records/reference/dns-record-types/) that Cloudflare supports for public zones.
77
- An internal zone can have the same name as a public zone in the same account.
8-
- Each internal zone can be linked to multiple [views](/dns/internal-dns/dns-views/).
8+
- Each internal zone can be linked to multiple [views](/dns/internal-dns/dns-views/)[^20].
99
- There can be several internal zones with the same name in one account. However, two internal zones with the same name cannot be linked to the same view.
10-
- Internal zones are not subject to any top-level domain (TLD) restrictions. This means that an internal zone can be created if its TLD is not registered publicly (for example, `xyz.local`), if it is created on the TLD itself (`local`), or even if on the root (`.`).
10+
- Internal zones are not subject to any top-level domain (TLD) restrictions. This means that an internal zone can be created if its TLD is not registered publicly (for example, `xyz.local`), if it is created on the TLD itself (`local`), or even if on the root (`.`).
11+
12+
[^20]: Logical groupings of internal DNS zones that are referenced by Gateway resolver policies to define how a specific query should be resolved.

0 commit comments

Comments
 (0)