Why does a hostname work in a browser but not in a command-line tool?

THE DIRECT ANSWER

Compare the exact name, resolver and error in both applications. A browser can use DNS over HTTPS, while a command-line lookup can query the operating system’s configured DNS service. RFC 8484 defines that separate HTTPS-based DNS path; Microsoft also notes that nslookup does not use the Windows client’s DNS cache.

Separate resolution from connection failures

Use the same fully qualified hostname and compare the actual A or AAAA results. Then test the website’s HTTP or TLS connection independently. Record which stage differs before changing authoritative records, because a DNS answer and a successful application connection are separate evidence.

Your Next Steps

  1. 01

    Use the identical full hostname.

  2. 02

    Identify each resolver and cached path.

  3. 03

    Compare A and AAAA answers.

  4. 04

    Compare the actual connection error.

Separate resolution from connection failures

Use the same fully qualified hostname and compare the actual A or AAAA results. Then test the website’s HTTP or TLS connection independently. Record which stage differs before changing authoritative records, because a DNS answer and a successful application connection are separate evidence.

What to check before you act
CheckWhy it matters
Verified detailDoH resolver transport.
Your next stepCompare the actual connection error.

Go a little deeper

Continue with these NameSilo articles selected for this question.

Sources & Useful Links

Published 2026-11-18. Last updated 2026-11-19.

Ready for your next idea?

See if the domain you have in mind is available.

Find Your Domain