- Zen IT Technologies
- Technical notes
- The DNS log shows it. Did the connection use the tunnel?
The DNS log shows it. Did the connection use the tunnel?
Jonny Flaks, Founder & Principal Architect
Technical note in Network & Infrastructure
A remote user cannot open a SaaS admin console. Its hostname appears in the company's Cloudflare DNS log, so IT assumes the connection went through the gateway. The SaaS administrator sees a residential source address. Both teams are looking at the same attempt.
Follow the lookup and the connection separately
The laptop first needs an address for the service. It then opens a connection to that address. In Cloudflare One Client, Split Tunnels controls the route for IP traffic. With Gateway DNS configured, a lookup can still reach Gateway and be subject to DNS policy while the application connection goes directly through the local ISP. Local Domain Fallback can change the DNS path too.
Two paths from the same laptop
DNS lookup
- The managed laptop sends the query to Gateway DNS.
- The DNS log records the lookup.
Excluded application traffic
- The laptop connects through the local ISP.
- The SaaS admin console sees the local public IP.
In that example, the DNS log establishes that a lookup occurred. It does not establish that a connection succeeded or that Gateway inspected the application traffic. The service's sign-in or network logs tell you which public address reached it.
DNS has exceptions of its own
Local Domain Fallback sends lookups for the domains you list to the device's own resolver. Cloudflare's documentation is explicit that these requests bypass the Gateway resolver, so they are not subject to Gateway DNS policies or DNS logging. For an internal domain that is usually the point. It also means the DNS log is silent for those names, so a name missing from the log proves nothing either way.
Keep the fallback list to internal domains that genuinely need a local resolver. For Enterprise plans, Cloudflare recommends Gateway resolver policies for custom resolvers instead, and those keep the queries visible.
What the full tunnel was doing quietly
Split tunnel usually arrives as a fix for call quality, and calls do improve. What else changes is easy to miss, because a full tunnel provides several things nobody wrote down. Every connection was inspected and filtered at the gateway. Every connection left a log. Every user reached SaaS services from an address the company recognized.
Exclude a destination and all three leave with it. Cloudflare's documentation says excluded traffic bypasses the client and is handled by the local machine, and advises against excluding a site whose traffic you want to see in the Gateway logs. An investigation that later needs that traffic will find nothing, which is "You cannot investigate what you did not retain" in network form. For hostname-based controls more generally, see "The allowlist entry is a hostname, not a destination".
Work backwards from the service that has to trust you
Some destinations depend on a specific egress address, such as a partner portal restricted to the company's approved IPs. Keep those destinations on a route with the agreed egress policy and confirm which source addresses the provider accepts. A full tunnel alone gives you no guarantee of one fixed public address.
For a video platform, the sensible answer may differ by destination. The media streams might benefit from local breakout while an administrative endpoint still needs the corporate route. Use the provider's documented destinations, give each exception a reason and check the result from a remote network. Widening the SaaS allowlist to fix a routing mistake changes who can connect.
A shared address is a wide allowlist
A gateway that proxies your traffic does not always give you an address of your own. By default, Cloudflare Gateway sends proxied traffic from a source range shared across all its Zero Trust accounts. Dedicated egress IPs, assigned only to your account, are available to Enterprise customers. Put a shared range on a SaaS allowlist and you have allowed every other customer of that gateway as well.
If a provider needs to trust your address, use a dedicated one, and send only that provider's traffic through it with an egress policy.
Routing is not access control
Split tunnel decides which traffic reaches the gateway. It says nothing about what a connected user can reach once it does. A full tunnel with no destination rules behind it lets anyone on the VPN reach everything the gateway can reach.
Rules tied to identity groups are the other half of the design. Split tunnel without them improves calls and leaves exposure where it was. Rules without split tunnel do the reverse. Most environments need both, planned together. Keep the exclusion list short while you are at it. Cloudflare notes that each entry takes the client time to process, and a short list is also one people can still explain a year later.
The check worth running
Pick one IP-restricted service. From a managed laptop on a hotspot, compare the client's intended route, the Gateway evidence and the source IP recorded by the service. Match the time across all three. That gives you a defensible answer to where this connection actually went.
Product note. Product features change frequently, so always check current features and documentation before acting on this note. It is a starting point rather than a configuration reference.
Explore this expertise: Network & Infrastructure