You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add Dash steps for internal zone creation
* Add tabs components and Dash steps to dns-views
* Revise create a view Dash steps
* Add dash instructions for reference zone assignment
* Get-started: remove api-only and add Dash tab placeholder
* Fix broken link
* Add partial for zone creation and replace in relevant pages
* Add reference zone dash steps and intro to get-started
* Create and apply partial for view-create-dash
* Overall review and add conditions to view creation partial
* Overall review and link to iDNS from docs landing page
* Specify reference at the bottom of internal zones and view is API-only
* Add Internal DNS to /products page
* Remove 'descriptive' specification for zone name
* Update get-started to match Gateway resolver UI text
* Fix typo
* Apply suggestions from code review
Co-authored-by: Maddy <[email protected]>
* Add missing period and implement some page descriptions
---------
Co-authored-by: Maddy <[email protected]>
Copy file name to clipboardExpand all lines: src/content/docs/dns/index.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,8 @@ Leverage Cloudflare's global network to deliver excellent performance and reliab
17
17
18
18
Cloudflare DNS is a fast, resilient and easy-to-manage authoritative DNS service. It delivers excellent performance and reliability to your domain while also protecting your business from [DDoS attacks](https://www.cloudflare.com/learning/ddos/what-is-a-ddos-attack/) and [route leaks and hijacking](https://www.cloudflare.com/learning/security/glossary/bgp-hijacking/). To know where to begin, refer to [Get started](/dns/get-started/).
19
19
20
+
Enterprise customers can also use Cloudflare DNS for their private network with [Internal DNS (Beta)](/dns/internal-dns/).
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.
12
12
@@ -20,17 +20,39 @@ When setting up DNS views, observe the following conditions:
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.
24
31
25
-
## Delete a view
32
+
</TabItem> </Tabs>
26
33
27
-
Use the [Delete Internal DNS View](/api/resources/dns/subresources/settings/subresources/account/subresources/views/methods/delete/) endpoint.
34
+
## Delete a view
28
35
29
36
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.
30
37
31
38
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.
Copy file name to clipboardExpand all lines: src/content/docs/dns/internal-dns/get-started.mdx
+42-7Lines changed: 42 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,15 +9,12 @@ import { TabItem, Tabs, Details, Example, Render } from "~/components";
9
9
10
10
Follow this guide to get started with Internal DNS.
11
11
12
-
Although there are some steps that can be achieved on the dashboard, currently the whole process can only be completed via API.
13
-
14
12
## Before you begin
15
13
16
14
<Renderfile="internal-dns-beta-note" />
17
15
18
16
- Make sure you have an Enterprise account with access to [Gateway resolver policies](/cloudflare-one/policies/gateway/resolver-policies/) and [Internal DNS](/dns/internal-dns/).
19
17
- Consider the different ways in which you can [connect to Gateway resolver](/dns/internal-dns/connectivity/).
20
-
- If you are not familiar with how to use Cloudflare API, refer to [Fundamentals](/fundamentals/api/get-started/).
21
18
- If you will be using an API token for authentication, make sure you have the following permissions:
22
19
23
20
<Detailsheader="API token configuration">
@@ -41,28 +38,64 @@ Although there are some steps that can be achieved on the dashboard, currently t
1. Use the [Update DNS settings](/api/resources/dns/subresources/settings/subresources/zone/methods/edit/) endpoint to add a reference from an internal zone to another internal zone. In `--data`, specify the `internal_dns` object with the parameter `reference_zone_id`. For details, refer to [reference zones](/dns/internal-dns/internal-zones/reference-zones/).
2. Within the selected zone, go to **Reference zone**.
65
+
3. Select **Add reference zone**.
66
+
4. Find the zone you want to use as reference and choose **Select** in the respective row.
67
+
68
+
</TabItem> <TabItemlabel="API">
69
+
70
+
1. Use the [Update DNS settings](/api/resources/dns/subresources/settings/subresources/zone/methods/edit/) endpoint to add a reference from an internal zone to another internal zone. In `--json`, specify the `internal_dns` object with the parameter `reference_zone_id`.
51
71
52
72
<Example>
53
73
<Renderfile="internal-reference-zone-api"/>
54
74
</ Example>
55
75
76
+
</TabItem> </Tabs>
77
+
56
78
## 2. Link your internal zone to a view
57
79
58
80
Since the resolver policy will require a [DNS view](/dns/internal-dns/dns-views/), you must have at least one view to be able to route requests to internal zones.
1. 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.
@@ -76,7 +109,7 @@ Besides selecting an internal DNS view when setting up your resolver policies, y
76
109
1. In [Zero Trust](https://one.dash.cloudflare.com/), go to **Gateway** > **Resolver policies**.
77
110
2. Select **Add a policy** and enter a name and description.
78
111
3. Create an expression for the traffic you wish to route. For guidance about selectors, operators, and values, refer to [Gateway](/cloudflare-one/policies/gateway/resolver-policies/#selectors).
79
-
4. Select **Use DNS view**. In the dropdown, choose the view that queries matching the expression should be sent to.
112
+
4. Select **Use Internal DNS**. Choose the view that queries matching the expression should be sent to.
80
113
5. (Optional) Adjust the option to **fallback through public DNS** according to your use case.
81
114
- Off: Gateway DNS resolver returns the response as-is to the client.
82
115
- On: 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.
@@ -91,4 +124,6 @@ Use the rule settings object to define `resolve_dns_internally`, specifying `vie
91
124
-`none`: Gateway DNS resolver returns the response as-is to the client.
92
125
-`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.
93
126
94
-
</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**.
Copy file name to clipboardExpand all lines: src/content/docs/dns/internal-dns/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Simplify private network management with Cloudflare DNS for your internal resour
21
21
22
22
<Plantype="enterprise" />
23
23
24
-
Manage DNS records that should only be accessible within your private network. Internal DNS [zones](/dns/internal-dns/internal-zones/) and [views](/dns/internal-dns/dns-views/) pair up with [Gateway resolver policies](/cloudflare-one/policies/gateway/resolver-policies/) so that you can control how a DNS query should be responded to according to the query context, such as its source IP.
24
+
Manage DNS records that should only be accessible within your private network. Internal DNS [zones](/dns/internal-dns/internal-zones/) and [views](/dns/internal-dns/dns-views/) pair up with [Gateway resolver policies](/cloudflare-one/policies/gateway/resolver-policies/) so that you can control how a DNS query should be responded to according to query context, such as query source IP.
Copy file name to clipboardExpand all lines: src/content/docs/dns/internal-dns/internal-zones/index.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
---
2
2
pcx_content_type: concept
3
3
title: Internal zones
4
+
description: Explore internal DNS zones in Cloudflare. These zones organize DNS records for resources accessible only within your private network, queried via Cloudflare Gateway.
Copy file name to clipboardExpand all lines: src/content/docs/dns/internal-dns/internal-zones/internal-dns-records.mdx
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
---
2
2
pcx_content_type: concept
3
3
title: Manage internal DNS records
4
+
description: Manage internal DNS records in Cloudflare. Learn about supported DNS record types and CNAME flattening.
4
5
sidebar:
5
6
order: 4
6
7
label: Internal DNS records
@@ -16,7 +17,7 @@ Refer to [Manage DNS records](/dns/manage-dns-records/how-to/create-dns-records/
16
17
17
18
## CNAME flattening in Internal DNS
18
19
19
-
With CNAME flattening, Cloudflare finds the final target content that a CNAME points to and then returns this content instead of a CNAME record. With Internal DNS, CNAME flattening is applied by default and cannot be turned off.
20
+
With [CNAME flattening](/dns/cname-flattening/), Cloudflare finds the final target content that a CNAME points to and then returns this content instead of a CNAME record. With Internal DNS, CNAME flattening is applied by default and cannot be turned off.
20
21
21
22
Cloudflare will try to flatten the CNAME record considering both the specified [DNS view](/dns/internal-dns/dns-views/) and any existing [reference zones](/dns/internal-dns/internal-zones/reference-zones/). If the reference zone then has another CNAME, the record will again be considered from the perspective of the original view.
description: Learn about reference zones. Cloudflare Internal DNS allows zones to reference others for query resolution when no direct record is found.
4
5
sidebar:
5
6
order: 4
6
7
---
7
8
8
-
import { Example, Render } from"~/components";
9
+
import { Example, Render, Tabs, TabItem } from"~/components";
9
10
10
-
During an [internal DNS query resolution](/dns/internal-dns/#architecture-overview), if no internal record is found within a matching internal zone, Cloudflare will check if the matching internal zone is referencing another internal zone. Successive references can be followed with a maximum of five references in a chain.
11
+
<Renderfile="internal-reference-zone-intro"/>
11
12
12
13
:::note
13
-
A wildcard record (`*.example.local`) in the matching internal zone will take precedence over an exact match in a referenced zone.
14
+
A wildcard record (`*.example.local`) in the matching internal zone will take precedence over an exact match in a reference zone.
14
15
:::
15
16
16
17
## Configuration conditions
@@ -22,11 +23,24 @@ A wildcard record (`*.example.local`) in the matching internal zone will take pr
22
23
23
24
## Set up
24
25
25
-
To set up a reference zone, use the [Update DNS settings](/api/resources/dns/subresources/settings/subresources/zone/methods/edit/) endpoint. In `--data`, specify the `internal_dns` object with the parameter `reference_zone_id`.
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/login) and select your account.
29
+
2. Go to **Internal DNS** and select a zone.
30
+
3. Within the selected zone, go to **Reference zone**.
31
+
4. Select **Add reference zone**. If your zone already has a reference zone set up, you must first remove it. As explained in the [configuration conditions](#configuration-conditions), each internal zone can only reference one other zone at a time.
32
+
5. Find the zone you want to use as reference and choose **Select** in the respective row.
33
+
34
+
</TabItem>
35
+
<TabItemlabel="API">
36
+
37
+
Use the [Update DNS settings](/api/resources/dns/subresources/settings/subresources/zone/methods/edit/) endpoint. In `--json`, specify the `internal_dns` object with the parameter `reference_zone_id`.
26
38
27
39
<Example>
28
40
<Renderfile="internal-reference-zone-api"/>
29
41
30
42
A third zone (C) could also point to zone B as a reference, but zone A cannot add another zone as a reference while also having zone B configured as its reference zone.
Copy file name to clipboardExpand all lines: src/content/docs/dns/internal-dns/internal-zones/setup.mdx
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,12 @@
1
1
---
2
2
pcx_content_type: how-to
3
3
title: Manage internal zones
4
+
description: Understand how to set up and manage internal DNS zones with Cloudflare. Explore configuration conditions, zone creation, and available API endpoints.
4
5
sidebar:
5
6
order: 2
6
7
---
7
8
8
-
import { Example, Render } from"~/components";
9
+
import { Example, Render, Tabs, TabItem } from"~/components";
9
10
10
11
Refer to the following sections to learn how to manage your [internal DNS zones](/dns/internal-dns/internal-zones/).
11
12
@@ -17,9 +18,18 @@ When setting up internal zones, observe the following conditions:
The API endpoints to manage internal zones are the same as for managing public zones. The main difference is that the zone type must be set to `internal`. Refer to the API documentation below for details:
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.
During an [internal DNS query resolution](/dns/internal-dns/#architecture-overview), if no internal record is found within a matching internal zone, Cloudflare will check if the matching internal zone is referencing another internal zone. Successive references can be followed with a maximum of five references in a chain.
7
+
8
+
9
+
{props.conditional==="get-started-link"&& (
10
+
<p>
11
+
For details, refer to <ahref="/dns/internal-dns/internal-zones/reference-zones/">reference zones</a>.
0 commit comments