Skip to content

Commit 3c7ab5c

Browse files
Move conditions into partials and replace in get-started
1 parent 4c1b6de commit 3c7ab5c

File tree

5 files changed

+29
-16
lines changed

5 files changed

+29
-16
lines changed

src/content/docs/dns/internal-dns/dns-views.mdx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar:
66
label: Views
77
---
88

9-
import { Details } from "~/components";
9+
import { Details, Render } from "~/components";
1010

1111
Internal DNS views are logical groupings of [internal DNS zones](/dns/internal-dns/how-to/internal-zones/). As explained in the [architecture overview](/dns/internal-dns/#architecture-overview), DNS views are referenced by [Gateway resolver policies](/cloudflare-one/policies/gateway/resolver-policies/) to define how a specific query should be resolved.
1212

@@ -16,9 +16,7 @@ Refer to the sections below for details on how to manage your DNS views, or cons
1616

1717
When setting up DNS views, observe the following conditions:
1818

19-
- DNS views can be empty, with no [internal zones](/dns/internal-dns/how-to/internal-zones/) linked to them.
20-
- A DNS view cannot contain public DNS zones[^1].
21-
- Each internal DNS zone name must be unique within a given DNS view.
19+
<Render file="internal-dns-view-conditions" />
2220

2321
## Create a view
2422

@@ -36,6 +34,4 @@ It is also possible to delete a DNS view that is being referenced by a Gateway r
3634

3735
- [Update a DNS view](/api/resources/dns/subresources/settings/subresources/views/methods/edit/) (`PATCH`)
3836
- [Get view details](/api/resources/dns/subresources/settings/subresources/views/methods/get/) (`GET`)
39-
- [List DNS views](/api/resources/dns/subresources/settings/subresources/views/methods/list/) (`GET`)
40-
41-
[^1]: DNS zones that contain public DNS records and are accessible by public resolvers.
37+
- [List DNS views](/api/resources/dns/subresources/settings/subresources/views/methods/list/) (`GET`)

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Although there are some steps that can be achieved on the dashboard, currently t
4343
1. Use the [Create Zone](/api/resources/zones/) endpoint to create an internal zone. Specify your account ID and set the `type` to `internal`.
4444

4545
<Details header="Internal zone configuration conditions">
46-
TBD > add partial with requirements from Setup page
46+
<Render file="internal-zones-conditions" />
4747
</Details>
4848

4949
2. Add DNS records to your internal zone using your preferred option:
@@ -66,8 +66,9 @@ TBD > add full API call example using IDs mentioned above
6666
Since the resolver policy will require a view, you must have at least one view to be able to route requests to Internal DNS.
6767

6868
1. Use the [Create Internal DNS View](/api/resources/dns/subresources/settings/subresources/views/methods/create/) endpoint. For each view you create, list all the internal zones that should be grouped under that view.
69-
<Details header="View configuration conditions">
70-
TBD > add partial with requirements from Setup page
69+
70+
<Details header="DNS view configuration conditions">
71+
<Render file="internal-dns-view-conditions" />
7172
</Details>
7273

7374
## 3. Configure Gateway policies

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar:
66
label: Internal zones
77
---
88

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

1111
Internal DNS zones are groupings of internal DNS records. While [public DNS records](/dns/manage-dns-records/) contain information about resources that you want to make available to the public Internet, internal DNS records allow you to manage resources that should only be available within your private network.
1212

@@ -16,11 +16,7 @@ Internal DNS zones do not get assigned Cloudflare nameservers and can only be qu
1616

1717
When setting up internal zones, observe the following conditions:
1818

19-
- Internal zones can contain the same [DNS record types](/dns/manage-dns-records/reference/dns-record-types/) that Cloudflare supports for public zones.
20-
- An internal zone can have the same name as a public zone in the same account.
21-
- Each internal zone can be linked to multiple [views](/dns/internal-dns/how-to/dns-views/).
22-
- 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.
23-
- 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 (`.`).
19+
<Render file="internal-zones-conditions" />
2420

2521
## Create an internal zone
2622

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
{}
3+
4+
---
5+
6+
- DNS views can be empty, with no [internal zones](/dns/internal-dns/how-to/internal-zones/) linked to them.
7+
- A DNS view cannot contain public DNS zones[^1].
8+
- Each internal DNS zone name must be unique within a given DNS view.
9+
10+
[^1]: DNS zones that contain public DNS records and are accessible by public resolvers.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
{}
3+
4+
---
5+
6+
- Internal zones can contain the same [DNS record types](/dns/manage-dns-records/reference/dns-record-types/) that Cloudflare supports for public zones.
7+
- 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/how-to/dns-views/).
9+
- 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 (`.`).

0 commit comments

Comments
 (0)