Command library / ipconfig
ipconfig
Show or manage Windows network configuration
Prints this Windows host's IP configuration. Plain ipconfig gives a short summary; /all adds MAC addresses, DHCP and DNS server details. It can also fix stale network state: /flushdns clears the local DNS cache, and /release plus /renew forces a fresh DHCP lease.
Practice ipconfigUsage
Options and flags
/allfull details: MAC address, DHCP server, DNS servers, lease times
/flushdnsclear the local DNS resolver cache
/releasegive back the current DHCP-assigned address
/renewrequest a new address from DHCP
/displaydnsshow what's currently cached in the DNS resolver
Examples
ipconfigQuick summary: IP address, subnet mask, default gateway.
ipconfig /allFull details including MAC address and DNS servers — what you need for a real network inventory.
ipconfig /flushdnsA stale DNS entry is still pointing at the old (fixed) server — this clears it out.
ipconfig /releaseDrop the current DHCP lease — usually followed immediately by /renew.
Common mistakes
cmd switches use a forward slash, not a dash — that's a Unix habit leaking into Windows.