← Knowledge Base
WindowsReference note1 min read · updated 2026-11-27

Reset the Windows network stack and DNS cache

ipconfig and netsh commands for stubborn connectivity and name resolution problems.

networkipconfignetsh

Elevated prompt:

ipconfig /all
ipconfig /flushdns
ipconfig /release && ipconfig /renew
netsh winsock reset
netsh int ip reset

Restart after winsock reset / int ip reset. Test in this order: ping 1.1.1.1 (routing), ping example.org (DNS), nslookup example.org, tracert example.org. PowerShell equivalents: Get-NetIPConfiguration, Clear-DnsClientCache, Resolve-DnsName example.org, Test-NetConnection example.org -Port 443. A "limited" or "no internet" icon with a 169.254.x.x address means DHCP failed.