DNS Servers
Cheat sheet · https://pcornel.dk/topic.php?topic=3077
Answer
DNS servers on a Windows interface are the resolvers it queries, in order. Set them with Set-DnsClientServerAddress or netsh; domain members should point only at internal DNS servers that know AD.
Remember
- Windows queries DNS servers in the configured order.
- Domain members should only use internal DNS servers.
- Settings come from DHCP or static configuration.
First checks
Get-NetIPConfiguration— addresses, gateway and DNS per interfaceGet-NetAdapter— adapters, status and link speedGet-NetRoute -AddressFamily IPv4— routes and metricsTest-NetConnection <host> -Port <p>— ping, route and TCP port testipconfig /all— full IP configurationGet-NetIPInterface | Select InterfaceAlias,AddressFamily,Dhcp,InterfaceMetric— DHCP state and metric per interface
Verify in this order
interface DNS servers → resolver queries in order
Where it usually breaks
First mismatch in host/interface identity → local config/routing/name state → Windows service/provider → firewall/security/session → remote service → application-visible exchange; preserve identity/native error/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3077