Use this when short names resolve to the wrong domain or not at all.
DNS Search List
1. (Get-DnsClientGlobalSetting).SuffixSearchList.
2. Short name fails → suffix missing.
3. Set via GPO "DNS Suffix Search List" or Set-DnsClientGlobalSetting.
4. Avoid long lists (slow failures).
5. Test Resolve-DnsName shortname.
short name → suffixes appended in order → first answer wins
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Long search lists causing slow lookups for every failed name.
- Overlapping internal and public domains.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Suffixes are appended in list order until one resolves.
- DHCP or GPO usually sets the list.
- Using the FQDN bypasses the search list.
Resolve-DnsName <name>— resolve via the Windows resolverGet-DnsClientServerAddress— DNS servers per interfaceGet-DnsClientCache— resolver cacheGet-DnsClientGlobalSetting— suffix search listClear-DnsClientCache— flush the cache
ReferenceWhy it matters1 section · depth on demand
How it works
When an application looks up a single-label name like fs01, Windows tries it with each suffix in turn: by default the primary suffix, then connection-specific suffixes (and devolution of the primary suffix). If a suffix search list is configured (GPO or Set-DnsClientGlobalSetting), only that list is used, in order. Names with a dot are tried as-is first.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
How a single-label name is expanded
Lookup of fs01 on a client with primary suffix branch.corp.example.com, connection suffix wifi.example.net:
| Configuration | Queries tried, in order |
|---|---|
| No search list (default) | fs01.branch.corp.example.com → fs01.corp.example.com (devolution) → fs01.wifi.example.net |
Search list corp.example.com, branch.corp.example.com | fs01.corp.example.com → fs01.branch.corp.example.com — nothing else |
When a search list is configured by Group Policy, only that list is used and devolution is not performed, as Microsoft's DnsClient policy documentation describes.
Cost of a long list
Every failed name is tried with every suffix, and each attempt can wait for timeouts. With six suffixes and an unreachable DNS server, a single mistyped name can take a minute. Keep the list short and ordered by likelihood.
Configure and inspect
PS C:\> Get-DnsClientGlobalSetting | Select UseSuffixSearchList, SuffixSearchList
PS C:\> Set-DnsClientGlobalSetting -SuffixSearchList @('corp.example.com','branch.corp.example.com')
PS C:\> Resolve-DnsName fs01 -Verbose
Set-DnsClientGlobalSetting cannot override a list that Group Policy already deploys; change the GPO instead (*Computer Configuration → Administrative Templates → Network → DNS Client → DNS Suffix Search List*).
Multi-label names
server.lab is first tried as-is. If that fails, Windows appends suffixes only when Allow DNS Suffix Appending to Unqualified Multi-Label Name Queries allows it. With a public TLD that happens to match (.lab, .dev), the as-is query may leave the network and leak internal names.
Security notes
- Do not include public domains you do not control: a user typing
intranetcould resolve to an outside host. - Avoid suffixes that end in short internal names that later become public TLDs — move to a registered domain (for example
corp.example.com).
*The DNS suffix search list configuration above are illustrative examples, not captured from a lab or production system.*
Commands
Get-DnsClientGlobalSetting | Select SuffixSearchList
Set-DnsClientGlobalSetting -SuffixSearchList @('corp.local','branch.corp.local')
Documented example, not captured output. Also set via GPO (*DNS Suffix Search List*).
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in DNS Client → DNS Search List. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/networking/dns/dns-client-settings · confidence 94%