[Tunnel] Add dns-resolver-addrs run parameter#29120
Open
nikitacano wants to merge 2 commits intoproductionfrom
Open
[Tunnel] Add dns-resolver-addrs run parameter#29120nikitacano wants to merge 2 commits intoproductionfrom
nikitacano wants to merge 2 commits intoproductionfrom
Conversation
Contributor
|
This PR requires additional review attention because it affects the following areas: PartialsThis PR updates partial files, which are pieces of content used across multiple files in our Render component.
|
Contributor
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
Contributor
|
Preview URL: https://ad6c9193.preview.developers.cloudflare.com |
ranbel
reviewed
Mar 19, 2026
ranbel
reviewed
Mar 19, 2026
| | ------------------------------------------------------------------------- | --------------------------- | | ||
| | `cloudflared tunnel run --dns-resolver-addrs <IP:PORT> <UUID or NAME>` | `TUNNEL_DNS_RESOLVER_ADDRS` | | ||
|
|
||
| Specifies custom DNS resolver addresses for `cloudflared` to use. Each address must be in `ip:port` format — providing an IP address without a port will cause `cloudflared` to fail to start. You can specify multiple resolvers by repeating the flag. For example, |
Contributor
There was a problem hiding this comment.
Suggested change
| Specifies custom DNS resolver addresses for `cloudflared` to use. Each address must be in `ip:port` format — providing an IP address without a port will cause `cloudflared` to fail to start. You can specify multiple resolvers by repeating the flag. For example, | |
| Specifies custom DNS resolver addresses for `cloudflared` to use for [private hostname routing](/cloudflare-one/networks/connectors/cloudflare-tunnel/private-net/cloudflared/connect-private-hostname/#scenario-b-use-a-specific-private-dns-server-advanced). Each address must be in `ip:port` format — providing an IP address without a port will cause `cloudflared` to fail to start. You can specify multiple resolvers by repeating the flag. For example, |
Contributor
There was a problem hiding this comment.
can we explain what the custom DNS resolvers are used for?
ranbel
reviewed
Mar 19, 2026
| cloudflared tunnel run --dns-resolver-addrs 1.1.1.1:53 --dns-resolver-addrs 1.0.0.1:53 <UUID or NAME> | ||
| ``` | ||
|
|
||
| A maximum of 10 resolver addresses are allowed. |
Contributor
There was a problem hiding this comment.
How does cloudflared determine which resolver to use?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--dns-resolver-addrsflag forcloudflared tunnel runip:portformat (bare IP causes cloudflared to fail)2025.7.0or later/tunnel/advanced/run-parameters/and/cloudflare-one/.../run-parameters/