Direct answer
Yes. In the remote Mac's terminal, dig shows the DNS answer and curl shows the response headers, and what you get is the real situation on this US residential broadband line. It is one vantage point and does not stand for the whole of the United States.
Basis
- macOS ships with
digandcurl; nothing extra to install.digplus a domain returns the addresses it resolves to, andcurl -sIplus a URL returns the response headers; most CDNs mark the code of the node that served the request and whether the cache was hit in those headers. - The answer depends on which resolver is used.
scutil --dnsshows the resolvers the machine is currently using; to compare against another public resolver, pointdigat it temporarily with the@argument, with no change to system settings. - The
-woption ofcurlcan print the time for name lookup, connection, first byte and total separately, which tells you which stage is slow more accurately than watching a browser progress bar. tracerouteshows the path to the node, which helps judge whether the request was routed to a faraway node.
Boundaries: when the answer is different
This is one vantage point on one residential broadband line. Routing may differ on other broadband providers and on cellular networks, and conclusions with statistical weight need a dedicated multi-point monitoring service. The broadband and exit may be shared with other machines, and timings are affected by line load at that moment, so measure several times at different times of day and do not conclude from a single result; we do not provide any speed or latency figures. Do not change the system's DNS or other network configuration to make comparisons; that is among the things you must not modify, and a mistake can take the machine offline. High-frequency probing or port scanning of sites that are not yours is a prohibited use; run the commands above against your own domains, and keep the frequency down.
How to do it
- Open Terminal and run
scutil --dnsto note the current resolvers. - Run
digwith your domain and record the returned addresses and TTL. - Run
curl -sIwith the page URL and find the header fields that indicate the node and cache status. - Print the per-stage timings with
curl -w, and repeat a few times some hours apart. - Save the command output together with the time it was run, and hand it to the colleague responsible for the CDN configuration to compare.
Related questions
- How can I test my site or app from a US network? Rent a real Mac in the United States
- Is the network exit on my rented Mac mini used only by me?
- How do I show in a test report that the test was run on a US network?
- The remote desktop is laggy: are my page speed measurements still accurate?
- Machine is in the United States, so why does a site show another region or language?
Use case
This question belongs to the use case: How can I test my site or app from a US network? Rent a real Mac in the United States
Other questions in the same use case:
- Can I rent a Mac in the United States by the hour or by the day for a quick test?
- I finished testing early. Can I get a refund for the rest of the rental term?
- Can local test scripts drive a browser on a remote Mac in the United States?
- Can several people on a test team share one remote Mac in the United States?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support