Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/content/docs/dns/cname-flattening/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@ sidebar:
label: About
---

import { Render } from "~/components"
import { Render, GlossaryTooltip } from "~/components"

CNAME flattening speeds up CNAME resolution and allows you to use a CNAME record at your root/apex domain (`example.com`).
CNAME flattening speeds up CNAME resolution and allows you to use a CNAME record at your <GlossaryTooltip term="zone apex" link="/dns/concepts/#zone-apex">zone apex</GlossaryTooltip> (`example.com`).

:::note


This functionality is also what allows you to use a [root custom domain](/pages/configuration/custom-domains/) with a Cloudflare Pages site.


:::

## How it works
Expand Down
13 changes: 3 additions & 10 deletions src/content/docs/dns/internal-dns/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,9 @@ Although there are some steps that can be achieved on the dashboard, currently t

## 1. Set up your internal DNS zone

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`.

<Details header="Internal zone configuration conditions">
<Render file="internal-zones-conditions" />
</Details>

2. Add DNS records to your internal zone using your preferred option:
- [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.
- 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.
3. Repeat this process for each internal zone you wish to add.
<Render file="internal-zone-create" params={{
conditional: "get-started-detail"}}
/>

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

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/dns/internal-dns/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ flowchart LR
end
```

Internal DNS zones contain the <GlossaryTooltip term="DNS record" link="/dns/manage-dns-records/">DNS records</ GlossaryTooltip> that should be used to resolve an internal DNS query. Also, if no internal record is found within a matching internal zone, Cloudflare will check if the matching internal zone is [referencing another internal zone](/dns/internal-dns/internal-zones/#reference-zones).
Internal DNS zones contain the <GlossaryTooltip term="DNS record" link="/dns/internal-dns/internal-zones/#internal-dns-records">DNS records</ GlossaryTooltip> that should be used to resolve an internal DNS query. Also, if no internal record is found within a matching internal zone, Cloudflare will check if the matching internal zone is [referencing another internal zone](/dns/internal-dns/internal-zones/#reference-zones).

<Example>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ Internal DNS zones do not get assigned Cloudflare nameservers and can only be qu

## Reference zones

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.

Each internal zone can only reference one other zone, but the same zone can be referenced by multiple internal zones. Public zones cannot be used as reference zones.
<Render file="reference-zone-intro" />

Refer to [Set up reference zones](/dns/internal-dns/internal-zones/reference-zones/) for step-by-step instructions.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ sidebar:

import { Example, Render } from "~/components";

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.

Each internal zone can only reference one other zone, but the same zone can be referenced by multiple internal zones. Public zones cannot be used as reference zones.
<Render file="reference-zone-intro" />

## Steps

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,7 @@ When setting up internal zones, observe the following conditions:

## Create an internal zone

1. Use the [Create Zone](/api/resources/zones/) endpoint to create an internal zone. Specify your account ID and set the `type` to `internal`.
2. Add DNS records to your internal zone using your preferred option:
- [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.
- 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.
3. Repeat this process for each internal zone you wish to add.

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/).

<Render file="internal-zone-create" />

## Other actions

Expand Down
6 changes: 5 additions & 1 deletion src/content/glossary/dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ entries:

- term: DNS record
general_definition: |-
DNS records are instructions that live in authoritative DNS servers and provide information about a domain including what IP address is associated with that domain and how to handle requests for that domain.
DNS records are instructions that live in authoritative DNS servers and provide information about a domain, including what IP address is associated with that domain and how to handle requests for that domain.

- term: DNS server
general_definition: |-
Expand Down Expand Up @@ -79,3 +79,7 @@ entries:
When a [DNS record is proxied](/dns/proxy-status/), requests are processed according to your configurations, and Cloudflare can optimize, cache, and protect your domain. Refer to [How Cloudflare works](/fundamentals/concepts/how-cloudflare-works/) for details.
associated_products:
- Fundamentals

- term: zone apex
general_definition: |-
zone apex refers to the domain or subdomain on which the control of DNS records starts.
20 changes: 20 additions & 0 deletions src/content/partials/dns/internal-zone-create.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
params:
- conditional?
---

import { Details, Render } from "~/components";

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`.

{ props.conditional === "get-started-detail" && (
<Details header="Internal zone configuration conditions">
<Render file="internal-zones-conditions" />
</Details>
)
}

2. Add DNS records to your internal zone using your preferred option:
- [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.
- 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.
3. Repeat this process for each internal zone you wish to add.
12 changes: 12 additions & 0 deletions src/content/partials/dns/reference-zone-intro.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
{}

---

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.

:::note
A wildcard record in the matching internal zone will take precedence over an exact match in a referenced zone.
:::

Each internal zone can only reference one other zone, but the same zone can be referenced by multiple internal zones. Public zones cannot be used as reference zones.
Loading