ipdetecto.com logo
ipdetecto.com
My IPSpeed
Knowledge Hub
HomeKnowledge HubWindows Ipconfig Explained
© 2026 ipdetecto.com
support@ipdetecto.comAboutContactPrivacyTermsllms.txt
Basics
5 MIN READ
Apr 19, 2026

Windows ipconfig Command Explained

ipconfig for DHCP leases, DNS servers, adapter names, and client cache: /all vs default, /release and /renew risks, /flushdns and /displaydns, and how this fits next to PowerShell Get-NetIPConfiguration.

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

SwitchEffectNotes
(none)Summary per adapterQuick glance at addresses and gateways
/allFull detailDHCP enabled flag, lease obtained/expires, DNS servers, physical address, NetBIOS scope
/release / /renewDHCP release or renewCan drop VPN or RDP sessions—use adapter-specific forms when available
/flushdnsClear local DNS cacheDoes not change upstream resolver or browser DoH
/displaydnsDump resolver cacheLarge output—pipe to findstr for one name
/registerdnsRe-register DNS recordsPrimarily 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.

Frequently Asked Questions

Q.What is the difference between ipconfig and ipconfig /all?

The default output shows a short summary per adapter (address, subnet mask or prefix, default gateway). /all adds DHCP lease times, full DNS server lists, physical (MAC) address, and other extended fields.

Q.Does ipconfig /flushdns fix wrong DNS answers everywhere?

No. It clears only the Windows DNS client resolver cache on this machine. Authoritative TTLs on resolvers, ISP caches, and application-layer DNS-over-HTTPS are not reset.

Q.Will ipconfig /release break my remote desktop session?

Often yes if you release the adapter carrying the active session. Prefer adapter-scoped release/renew when your Windows build supports it, or schedule changes during a maintenance window with out-of-band access.

Q.Why does ipconfig show a different DNS server than my router?

Windows may use DHCP-provided DNS, static per-adapter DNS, NRPT policies, VPN virtual adapters, or encrypted DNS clients. Compare /all per adapter and check active VPNs.

Q.Do I need Administrator for ipconfig?

Viewing output usually works without elevation. /release, /renew, and some advanced operations may require Administrator depending on policy and adapter type.

Q.How do I find my default gateway quickly?

Run ipconfig and read the Default Gateway line for the active adapter, or ipconfig /all and correlate adapter media state (connected vs disconnected).

Q.What does media disconnected mean?

The adapter has no link (cable unplugged, Wi-Fi radio off, or disabled NIC). It can still appear in the list with historical configuration—focus on adapters marked as connected.

Q.How is Get-NetIPConfiguration different?

It returns PowerShell objects for addresses, routes, and DNS bindings—ideal for filtering and automation. ipconfig remains the universal quick text view.
TOPICS & TAGS
ipconfig /allipconfig flushdnsWindows DNS serversDHCP leaseGet-NetIPConfigurationipconfig explained