Skip to content

Commit 4ed1fe6

Browse files
Add tabs components and Dash steps to dns-views
1 parent 2184893 commit 4ed1fe6

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

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

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

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

1111
Internal DNS views are logical groupings of [internal DNS zones](/dns/internal-dns/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

@@ -20,16 +20,41 @@ When setting up DNS views, observe the following conditions:
2020

2121
## Create a view
2222

23+
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
24+
25+
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/login) and select an account.
26+
2. Go to **Internal DNS** > **Views**.
27+
3. Give your view a descriptive name, observing the [configuration conditions](#configuration-conditions).
28+
4. Add zones to your view by selecting **Manage zones added(TBD)**. Select the internal zones that should be used to resolve queries sent by Gateway resolver to this view and choose **Save** to confirm.
29+
30+
</TabItem>
31+
<TabItem label="API">
32+
2333
Use the [Create Internal DNS View](/api/resources/dns/subresources/settings/subresources/account/subresources/views/methods/create/) endpoint. For each view you create, list all the internal zones that should be grouped under that view.
2434

25-
## Delete a view
35+
</TabItem> </Tabs>
2636

27-
Use the [Delete Internal DNS View](/api/resources/dns/subresources/settings/subresources/account/subresources/views/methods/delete/) endpoint.
37+
## Delete a view
2838

2939
DNS views can be deleted even if they still have internal zones linked to them. The internal DNS zones will continue to exist but will be unlinked once the view is deleted.
3040

3141
It is also possible to delete a DNS view that is being referenced by a Gateway resolver policy. In this case, queries matching the policy will return SERVFAIL.
3242

43+
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
44+
45+
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/login) and select an account.
46+
2. Go to **Internal DNS** > **Views**.
47+
3. Find the view you want to delete.
48+
4. Select the three dots in the corresponding row and choose *Delete*.
49+
5. In the confirmation dialog, select **Delete** again to proceed.
50+
51+
</TabItem>
52+
<TabItem label="API">
53+
54+
Use the [Delete Internal DNS View](/api/resources/dns/subresources/settings/subresources/account/subresources/views/methods/delete/) endpoint.
55+
56+
</TabItem> </Tabs>
57+
3358
## Other actions
3459

3560
- [Update a DNS view](/api/resources/dns/subresources/settings/subresources/account/subresources/views/methods/edit/) (`PATCH`)

0 commit comments

Comments
 (0)