What ipconfig is for
ipconfig.exe prints the Windows host’s IP interface configuration: IPv4/IPv6 addresses, subnet masks or prefix lengths, default gateways, and which DNS servers each adapter is using. With switches it can renew or release DHCP leases, show or clear the local DNS client cache, and trigger dynamic DNS registration in AD environments.
Common switches
| Switch | Effect | Notes |
|---|---|---|
| (none) | Summary per adapter | Quick glance at addresses and gateways |
/all | Full detail | DHCP enabled flag, lease obtained/expires, DNS servers, physical address, NetBIOS scope |
/release / /renew | DHCP release or renew | Can drop VPN or RDP sessions—use adapter-specific forms when available |
/flushdns | Clear local DNS cache | Does not change upstream resolver or browser DoH |
/displaydns | Dump resolver cache | Large output—pipe to findstr for one name |
/registerdns | Re-register DNS records | Primarily domain-joined dynamic DNS workflows |
Reading /all like support
Match the adapter name in ipconfig to the NIC you care about (Wi-Fi vs Ethernet vs VPN virtual adapter). Compare DHCP-assigned DNS with what you expect from the router or corporate policy. Note IPv6 temporary addresses and privacy settings when debugging allowlists. If numbers disagree with the GUI, trust ipconfig for the live stack and correlate timestamps with changes (VPN connect, dock/undock).
PowerShell counterpart
Get-NetIPConfiguration surfaces similar routing and DNS binding data as structured objects—better for scripts and exporting to tickets. ipconfig remains the fastest human-readable baseline in WinRE and remote support calls.
Related: Windows networking commands, Flush DNS cache, How DNS works, PowerShell networking.