Cloudflare Docs
Learning Paths
Edit this page on GitHub
Set theme to dark (⇧+D)

Configure Local Domain Fallback

  2 min read

By default, Cloudflare Zero Trust excludes common top level domains used for local resolution from being sent to Gateway for processing. These domains are resolved by the local DNS resolver configured for the device on its primary interface. Since these DNS requests bypass the Gateway resolver, they are not subject to Gateway DNS policies or DNS logging.

You can add additional domains to the Local Domain Fallback list and specify a DNS server to use in place of the Gateway resolver. The WARP client proxies these requests directly to the configured fallback servers.

​​ Add a domain

  1. Go to the Local Domain Fallback page.

  2. Enter the Domain you want to exclude from Gateway. All prefixes under the domain are subject to the local domain fallback rule (for example, all entries are interpreted as *.example.com).

  3. Enter the DNS server(s) that should resolve that domain name.

    • All servers are tried and the fastest response is used. If this response is no records found, then that response will be used and the other servers will not be queried.
    • It is best to always specify at least one DNS server for each domain. If a value is not specified, the WARP client will try to identify the DNS server (or servers) used on the device before it started, and use that server for each domain in the Local Domain Fallback list.
  4. Enter an optional description and select Save domain.

  5. DNS traffic to the local domain fallback server is routed according to your Split Tunnel configuration. To ensure that queries can reach your private DNS server:

    • If your DNS server is only reachable outside of the WARP tunnel (for example, via a third-party VPN), exclude the server’s IP.
    • If your DNS server is only reachable through the WARP tunnel (for example, if it is connected to Cloudflare via cloudflared or Magic WAN), include the server’s IP.

Learn more about how WARP handles DNS requests.