Does Switching Public DNS Change CDN Nodes? How EDNS Client Subnet Affects Steering
Switching public DNS resolvers may change a CDN’s DNS answers, but it does not necessarily change the actual entry node or make access faster. To assess this, separate three layers: which resolver the client actually uses, which location signals the CDN’s authoritative DNS uses to return addresses, and where network routing sends requests after those addresses are returned. Rather than starting with IP geolocation labels, first verify whether the resolver actually changed, whether the A and AAAA records changed, and how HTTPS performs when connecting to a fixed address.
EDNS Client Subnet, or ECS, is a mechanism that lets a recursive resolver include a client network prefix in a DNS query. Steering systems that support and use ECS can consider this prefix instead of relying solely on the recursive resolver’s outbound address. However, whether the resolver sends it, whether the authoritative server uses it, and how cached answers are reused all depend on implementation and policy. “This public DNS service supports ECS” does not mean “every query is steered according to my actual location.”
One finding can change the entire troubleshooting sequence: if the browser continues to reuse an existing connection after a DNS change, or still sends queries through its own encrypted DNS service, changes in measured performance cannot be attributed to steering by the new DNS resolver. Confirm the resolution path and connection state before discussing ECS, node distance, or CDN selection.
Why Public DNS Can Affect the Addresses a CDN Returns
CDN Authoritative Servers Usually Do Not See the End User
In a typical lookup, the browser asks the system’s or its own DNS service for a domain’s address. The recursive resolver then obtains an answer using its cache and the DNS delegation hierarchy. When the CDN’s authoritative DNS receives the query, it is usually communicating directly with the recursive resolver, not the user’s device.
Without usable ECS information, the CDN can infer a service region from the source address of the recursive query, then return addresses based on factors such as the carrier, node health, capacity, and service policies. Location is only one steering input; it does not mean the geographically nearest data center will always be selected.
When a user switches from an ISP’s DNS service to public DNS, the authoritative server may receive different location signals if the two resolvers send recursive queries from different networks or regions. The resulting A or AAAA records, or a link in the CNAME chain, may therefore change. Conversely, if both resolvers map to the same steering region, their answers may be identical.
A public DNS service’s client-facing address is not necessarily the outbound address it uses to contact authoritative servers. Even if the user connects to a nearby Anycast resolver entry point, subsequent recursive queries may leave through a different set of outbound addresses. Ping latency between the user and the resolver alone cannot tell you which region the CDN’s authoritative server sees.
A CNAME Is Not a Physical Node Address
Websites often connect to a CDN through a CNAME, with the target domain returning A or AAAA records. As explained in the DNS record types reference, a CNAME maps one name to another, while A and AAAA records provide IPv4 and IPv6 addresses, respectively. These records serve different roles, so comparisons should not isolate just one name in the chain.
The same CNAME chain can resolve to different final addresses by region and over time. Different CNAME chains may also lead into the same service network. With record flattening or synthesized responses, a query for the original domain may not expose the full chain.
Therefore, “the CNAME stayed the same after changing DNS” does not prove that steering remained unchanged, and “the CNAME changed” does not prove that application traffic moved to another data center. Continue recording the final addresses, address family, and actual connection results, then assess them alongside provider-documented entry-point identifiers.
What Information Does ECS Add to Steering?
It Carries a Network Prefix, Not Complete Location Data
ECS is an EDNS option described in RFC 7871. Its core query fields include the address family, source prefix length, and address data truncated to that length. For example, an IPv4 /24 prefix represents a network range; it does not require sending the user’s full IPv4 address. IPv6 has corresponding prefix representations.
This information allows authoritative DNS to distinguish client networks more precisely, but it is not GPS and cannot reliably identify an administrative region, home address, or final access provider. Mobile networks, enterprise egress points, VPNs, centralized NAT, and inaccuracies in address databases can all cause the prefix to diverge from the endpoint’s actual location.
If browser traffic goes through a proxy while DNS queries still leave locally, ECS may reflect the local network even though the proxy’s outbound address is what actually accesses the CDN. In that case, even steering that “correctly identifies” the DNS client may not suit the actual HTTP traffic.
ECS Requires Cooperation at Both Ends of the Query Path
For ECS to affect the result, the recursive resolver must at least be willing to send the relevant information, the query must reach an authoritative service that supports the mechanism, and the authoritative steering system must actually use it. If forwarding resolvers are involved, you must also consider whether they preserve, truncate, replace, or ignore the option.
Multilevel CNAME chains make this harder to assess. Different target names may belong to different authoritative zones, and a recursive resolver’s ECS behavior may vary across those zones. An ECS option returned at one step does not establish that every subsequent steering stage used the same prefix.
Even when ECS is received, the authoritative service may prioritize removing failed nodes, carrier restrictions, capacity protection, or account policies. The same client prefix therefore does not guarantee the same address every time. Likewise, changing the prefix without changing the answer does not necessarily mean ECS was ignored; both prefixes may simply map to the same service region.
Source Prefix and Cache Scope Are Different
The source prefix in a query tells the authoritative server how much detail about the client network has been supplied. The scope prefix in the response indicates the client network range across which the answer can be reused.
This distinction matters. A query carrying /24 does not mean the cached answer can serve only that /24; the authoritative server can indicate a broader applicable range. A scope of zero means the answer does not need to be partitioned by client subnet for reuse, but it remains subject to the name, record type, expiration, and other caching conditions. It does not mean the answer can be cached indefinitely.
An ECS-aware recursive cache must distinguish applicable subnet ranges rather than unconditionally serving an answer intended for one client network to every user. More granular prefixes can consequently increase cache fragmentation, reduce sharing for some queries, and increase recursive query volume. This is a trade-off among steering precision, cache efficiency, and privacy—not a case of longer prefixes always being better.
What Counts as Useful Evidence After a DNS Change?
The following observations may look similar, but they support different conclusions.
Observation | What it supports | What it still does not prove |
|---|---|---|
The same domain returns different A or AAAA addresses | The two lookups obtained different address sets | The physical data center definitely changed, or the new addresses are faster |
The addresses stay the same, but connection latency changes | Access performance changed | DNS steering definitely changed, or the node definitely stayed the same |
Different ECS prefixes return different answers | Under these test conditions, answers differ in a way associated with the prefix | Real clients will necessarily send those prefixes |
Resolution is faster, but access to fixed addresses shows no clear difference | The benefit may come mainly from the resolution stage | Every resource on the page will become faster at the same time |
Command-line answers change, but the browser’s connection address does not | The two may use different caches, resolution paths, or connection paths | The new DNS configuration did not take effect |
The Same IP Can Lead to Different Locations
With Anycast, the same service address can be advertised from multiple locations, and network routing directs user traffic to an entry point. Even if the address returned by DNS stays the same, routing changes can alter the actual entry location.
Conversely, two different IP addresses may belong to the same entry cluster or region. Address counts cannot be directly converted into node counts, and IP geolocation databases are not proof of physical deployment. For more on the distinction, see Anycast and DNS steering: the former primarily uses network routing to select an entry point, while the latter primarily uses name resolution to select a destination. Both can also operate together.
Browser Performance May Not Be a DNS Issue at All
A browser may already have cached DNS answers, HTTP/2 connections, or HTTP/3 sessions that it continues to reuse after the system DNS changes. Page resources may also come from the browser cache or a Service Worker, so no new network request is made.
IPv6 is another common variable. After changing resolvers, AAAA availability, response timing, or address sets may change, leading the browser to choose a different address family. Test IPv4 and IPv6 separately rather than simply attributing a poor IPv6 route to “public DNS assigning the wrong node.”
Also distinguish node selection from cache state. After switching to another edge entry point, an object may initially miss the cache and take longer to return its first byte, while the original entry point may have a warm cache. Comparing one cold request with one warm request does not directly measure steering quality. An edge cache miss also does not necessarily mean the request reached the organization’s origin server; an upper-tier cache may sit between them.
Step One: Confirm Which Resolver the Device Actually Uses
What you need to establish is the full path: whether the application uses system resolution or its own resolver, whether the system sends queries to a router or directly to public DNS, which upstream resolver the router forwards to, and whether a VPN, enterprise proxy, or security software intercepts the process.
The server queried by default by dig generally tells you only where that particular command sent its query. A local loopback address may represent a system caching service; a gateway address may simply represent a router’s DNS forwarder. Neither directly identifies the final recursive resolver’s outbound address.
Follow this sequence to avoid continuing performance tests with an invalid comparison:
Record the current network, VPN, and proxy state, and check whether the browser has its own secure DNS enabled.
Inspect the system DNS configuration and determine whether it shows an upstream resolver or a local forwarding entry point.
Obtain comparison answers by explicitly specifying a resolver, then compare them with queries using the system default.
In browser developer tools, inspect each request’s remote address, protocol, and whether a new connection was established. If necessary, retest in a controlled, fresh browser session.
If connections must be restarted or test-device caches cleared, first record the scope of impact. Do not immediately change settings across all devices on the network.
A query that specifies a resolver verifies only that query path; it does not automatically change the browser’s behavior. Managed networks may also restrict or transparently forward unencrypted DNS. If the server identity or response behavior contradicts expectations, confirm the path using network-side logs rather than assuming that the query reached its destination directly just because that address appears in the command.
Step Two: Compare Addresses, TTLs, and ECS with dig
Establish a Baseline Without Manually Specifying ECS
The following commands are intended for a test environment with dig installed. The documentation address 203.0.113.10 is only a placeholder. Before running the commands, replace it with an authorized, reachable recursive resolver, then run the same queries against the second resolver. Do not treat it as a working public DNS address.
dig @203.0.113.10 www.example.com A +noall +answer +stats
dig @203.0.113.10 www.example.com AAAA +noall +answer +stats
dig @203.0.113.10 www.example.com A +noall +comments +answer +additional +stats
Record query time, server, status code, CNAME chain, final address set, and the TTL of each record. Do not retain only the first IP or compare only the order in which addresses appear. Reordering a multi-address response does not necessarily mean the node set changed.
A declining TTL across consecutive queries usually reflects the remaining cache lifetime. A sudden increase may indicate a cache refresh, a different cache instance, or an answer change. TTL alone cannot tell you which occurred. Different TTLs from two resolvers may also simply reflect different cache population times, rather than different steering intervals configured by the provider.
Here, “without manually specifying ECS” does not mean there is necessarily no ECS upstream. The recursive resolver may still add information according to its own policy. Queries captured on the client side and queries sent by the recursive resolver to authoritative servers traverse two different parts of the path.
Compare a Specific Prefix with a Zero-Length Prefix
Versions of dig that support +subnet can submit an ECS option to a recursive resolver. The following client network also uses a documentation prefix solely to demonstrate command structure; it does not represent any real user region.
dig @203.0.113.10 www.example.com A +subnet=203.0.113.0/24 +noall +comments +answer +additional +stats
dig @203.0.113.10 www.example.com A +subnet=0.0.0.0/0 +noall +comments +answer +additional +stats
Check whether the OPT section displays client subnet information, and compare address sets, source prefixes, and scopes. A zero-length source prefix indicates that no client address information is being supplied. This is not the same input as omitting the ECS option entirely; actual handling depends on the resolver’s behavior.
If different prefixes return different addresses, there is a steering difference worth investigating under these test conditions, but changes in query timing, cache state, and load have not yet been ruled out. Alternate and repeat the queries, recording timestamps rather than directly pairing two results collected far apart.
If no ECS information is returned, that alone does not establish that the authoritative server has no ECS support. The resolver may not have forwarded the option or echoed it back to the client, or this particular answer may not expose the capability. If you receive REFUSED, a timeout, or an unexpected status, first check resolver policy and network reachability. Do not interpret a failed query as evidence that the CDN has no available nodes.
Manually submitting a prefix tests how the resolver handles that input; it does not simulate real browser traffic. Use authorized test prefixes, avoid large-scale enumeration of third-party networks, and do not present the results as actual access measurements for users in a particular region.
Step Three: Fix the Destination Address and Test Whether HTTPS Is Actually Faster
DNS comparisons establish whether the answers changed. Connection comparisons establish whether those changes are useful. Keep these two types of evidence separate.
The following command uses curl --resolve to direct the same URL to a candidate edge address while preserving the domain’s Host and TLS SNI. Before running it, replace the domain, candidate address, and resource path, and confirm that the target is a small, publicly readable test object with stable content. Do not access the IP directly and manually add Host; a different TLS SNI may send the request through a different processing path.
curl --noproxy '*' --resolve www.example.com:443:203.0.113.10 \
--connect-timeout 5 --max-time 20 \
-sS -D - -o /dev/null \
-w '\nremote_ip=%{remote_ip} code=%{http_code} dns=%{time_namelookup} connect=%{time_connect} tls=%{time_appconnect} ttfb=%{time_starttransfer} total=%{time_total}\n' \
https://www.example.com/static/test.txt
This command explicitly bypasses proxies, assuming the test network permits direct connections. If the application must use a proxy, design a separate proxy comparison; direct-connection results cannot substitute for the actual experience. The command also retains certificate verification. Certificate failures must be recorded as failures, not “fixed” by disabling verification.
Because --resolve specifies the connection address, the name-resolution timing here does not represent the new public DNS resolver’s actual lookup time. Its purpose is precisely to remove the DNS stage from the comparison and measure connection and response performance across candidate addresses.
Convert Cumulative Timings into Stages Before Interpreting Them
For this kind of HTTPS request—with no proxy, no redirects, and a new connection—time_connect is the cumulative time from the start of the request until the TCP connection completes. Subtracting time_namelookup gives a closer approximation of the TCP connection stage. Subtracting time_connect from time_appconnect approximates the TLS handshake stage.
time_starttransfer is the cumulative time to the first byte, not pure server processing time. Even after subtracting the TLS completion time, the remainder still includes request transmission, network round trips, edge processing, and any upstream waiting. Subtracting the first-byte time from time_total gives a closer approximation of the response-body transfer stage.
The example does not automatically follow redirects. If it returns 3xx, inspect the redirect destination first, then establish a new test under the same conditions for the final resource. Do not include the total time after redirecting to another host in the original address comparison. Separately launched curl processes usually establish new connections, whereas browsers may reuse them. Different HTTP protocols also change connection costs, so command-line results cannot be directly equated with full page load time.
Control Cache State and Verify Application Results
When comparing two candidate addresses, keep the URL, method, request headers, test egress, and time window consistent, and alternate the tests. Do not arbitrarily add random query parameters to “bypass caching”; they may change the cache key and cause you to measure a different class of request.
Record provider-documented cache-status headers and clues such as Age, but do not assume that every CDN assigns the same meaning to the same field. Where possible, record initial and subsequent requests separately to avoid mixing cold and warm cache results. HTTP 200 must also be accompanied by content checks to confirm that the response is not an error page, challenge page, or incomplete application response.
Track timeouts, certificate errors, connection failures, and content errors separately. Do not remove them from the sample and report only low latency for successful requests. Calculate percentiles using a clearly defined raw-sample population; do not simply average regional P95 values to produce an overall P95.
Choose the Next Step Based on the Results
Addresses Changed, and Fixed-Address Tests Are Consistently Faster
This supports the conclusion that DNS selection may have improved the access path, but you should still identify which stage improved. If most of the gain comes from shorter connection times, a network-path difference is more likely. If connection times are similar but time to first byte improves significantly, investigate cache state, upstream paths, and node load further.
Next, repeat the tests in the same region and on the same carrier, and recheck across different times of day. If only some users benefit, prioritize the steering issue for that network segment rather than asking every visitor to switch DNS.
Addresses Stayed the Same, but Resolution Is Much Faster
The benefit may come mainly from recursive resolution, particularly for first visits and pages containing multiple uncached domains. Once DNS answers are cached, however, this benefit may shrink, and persistent-connection scenarios may not see continued gains.
If time to first byte remains high when using fixed addresses, further public DNS switching should become a lower priority. Investigate edge caching, upstream requests, or application processing instead of using resolution optimization to obscure response-path problems.
Addresses Changed, but Access Became Slower or Unstable
The client prefix may have been mapped to an unsuitable region, but other possibilities include a colder cache at the new entry point, poor carrier interconnection, or an IPv6 path problem. Separate address families and cache states before deciding whether steering policy is responsible.
Information submitted to the CDN provider should include the time and time zone, a de-identified user network prefix, resolver, record type, returned addresses, TTLs, fixed-address request results, and failure types. A single screenshot showing that “the IP is identified as being in another region” is usually insufficient to diagnose the problem.
The Command Line Improved, but the Browser Did Not
First check browser secure DNS, connection reuse, address family, proxies, and resource domains. The main document accounts for only part of a page’s requests; images, scripts, or APIs may use different CDNs and resolution paths. Testing only www.example.com does not replace checking critical resource domains such as api.example.com.
You can supplement these observations with CdnChart’s website speed test, but distinguish the platform’s probe egress from real residential broadband and mobile networks. External probes provide a comparison; they do not directly prove which resolver or ECS prefix a particular user device used.
Should Site Operators Change DNS, Configure ECS, or Adjust the CDN Architecture?
For end users, switching public DNS is a localized, reversible diagnostic step. For site operators, it is generally not a controllable site-wide fix. A website cannot require every visitor to use the same resolver or assume that different resolvers will consistently apply the same ECS policy.
If performance differences depend strongly on resolver egress and affected users are concentrated in particular networks, include “steering quality without ECS” in your CDN evaluation. A solution that performs well only when a client prefix is specified manually, while consistently misclassifying real recursive resolver egress, should not be deployed based solely on those experimental results.
If the same Anycast address performs poorly on a particular carrier, changing DNS may not change the destination address at all. Focus instead on carrier interconnection, routing policies, and the provider’s entry-point coverage, rather than continuing to adjust client prefixes. DNS changes can become a useful intervention only after confirming that the product supports returning different address pools.
For organizations operating their own recursive resolvers, ECS should be an explicit configuration decision, not something enabled unconditionally. Check prefix truncation, supported upstreams, cache implementation, and privacy requirements. Encrypted DNS protects a particular transport link; it does not automatically prevent a resolver from providing ECS information to authoritative services.
Keep every change limited in scope: validate it first on test clients, a separate resolver instance, or a small proportion of users, and retain the original configuration and a rollback path. After the change, check resolution failures, cache hits, upstream query volume, address families, and real application responses together. A single latency reduction is not sufficient validation.
Close the Investigation with a Verifiable Record
A complete validation should let others reproduce why you attributed the result to DNS steering rather than another factor. Collect evidence under the following headings:
Environment: Region, carrier, access type, IPv4/IPv6, proxy state, and whether the browser uses its own DNS service.
Resolution: Query time, resolver entry point, record type, CNAME and address sets, TTLs, and client-visible ECS information.
Connection: Actual remote address, HTTP protocol, new or reused connection, certificate results, and redirects.
Response: Cold or warm cache state, content correctness, stage timings, failure counts, and the defined population used for successful-sample statistics.
Change: Scope of the change, retest periods, rollback conditions, and comparison results after restoring the original configuration.
Ultimately, distinguish four claims: the resolver changed, the DNS answer changed, the actual entry point changed, and the user experience improved. These may be causally related, but none substitutes for another. ECS can improve the location signals available to authoritative steering, but it does not guarantee node proximity, network quality, or page performance. Only by linking resolution evidence with access results collected under the same conditions can you decide whether a public DNS change is worth keeping.
- public DNS
- EDNS Client Subnet
- ECS steering
- CDN node selection
- DNS steering verification
- dig ECS testing
- Anycast and DNS steering
- slower access after changing DNS