Skip to content

Knowledgebase

Diagnosing Windows Server DNS client resolution

servers, domains-dns

Diagnose name-resolution problems from the Windows Server that is making the request. This is a DNS client investigation, even if the same machine also hosts a website or runs the DNS Server role.

01 Check the actual resolver configuration

  1. Record the failing hostname, application error and time. Distinguish a complete domain name from a short internal name.
  2. Run ipconfig /all and inspect the active network adapter's addresses, gateway, DNS servers and connection-specific suffix. Compare them with the intended network configuration.
  3. For a domain-joined server, verify the approved internal DNS design. Replacing its resolvers with arbitrary public servers can prevent resolution of the organisation's internal directory records.
  4. Query the failing complete name, for example nslookup www.example.com.. The trailing dot makes the fully qualified name explicit. Record which DNS server answered and the returned result.
  5. Compare a known working internal or external name where relevant. This helps separate one missing record from a resolver or network-path failure.
  6. If the complete name works but the short name fails, inspect the DNS suffix configuration. If every query times out, investigate access to the configured resolver rather than changing the website's DNS records first.

02 Compare cache and application behaviour

Use ipconfig /displaydns to inspect the local resolver cache. After confirming that the authoritative problem is corrected, ipconfig /flushdns clears that client's cached answers, including negative results. It does not clear every resolver on the internet.

Nslookup does not use the Windows client's DNS cache, so a successful query can differ from an application's cached result. Also check an intentional Hosts-file entry and whether the application maintains its own cache. Investigate the specific layer before repeatedly flushing unrelated caches.

03 Verify the service separately

Once the name returns the expected address, test the intended connection, certificate and application response. Correct DNS resolution does not prove that a web server or database listener is available at that address.

04 Example: query the Windows DNS client for a complete hostname

Run this in PowerShell on the Windows machine experiencing the lookup failure. Replace the sample name with the exact fully qualified hostname. The trailing dot avoids interpreting the name relative to an unintended DNS suffix.

Command example
Get-DnsClientServerAddress
Resolve-DnsName -Name 'www.example.com.' -Type A -DnsOnly
Resolve-DnsName -Name 'www.example.com.' -Type AAAA -DnsOnly

Read the result: Compare the active adapter's configured resolvers and the returned records with the expected internal or public DNS design. A name can have A records without AAAA records, so an absent AAAA answer is not automatically an outage. A timeout differs from a valid response reporting that the name does not exist.

For a domain-joined server, preserve the approved internal DNS configuration. Test the actual application connection after resolution succeeds. Repeated cache flushing cannot fix an absent authoritative record or a network path that cannot reach the configured DNS server.

Common questions

Does a failed ping prove the DNS server is down?

No. ICMP may be blocked while DNS queries are allowed. Test the actual query and review the permitted network path.

Why does only one hostname fail?

Review that record's spelling, type, delegation and returned answer. A resolver that answers other names successfully may be reporting a real missing record rather than having a general outage.

Was this answer helpful?

Need a little more help?

Our support team can help you find the next step.

Contact support