The Ipconfig command is a built-in Windows networking tool that allows you to view your network configuration, troubleshoot connectivity issues, and manage DNS settings. Whether you need to find your IP address, clear your DNS cache, or renew your network configuration, this command can help you complete these tasks in seconds.
One of the biggest advantages of ipconfig is its simplicity. You do not need to install additional software or have advanced networking knowledge to use it.
In this guide, we will explain how the ipconfig command works, explore its most useful options, and provide practical examples to help you troubleshoot common network problems.
What Is the Ipconfig Command?
Ipconfig, short for Internet Protocol Configuration, is a command-line utility available in Microsoft Windows. It displays the current TCP/IP configuration of your computer and allows you to manage certain network settings.
You can use the ipconfig command to:
- Find your IPv4 and IPv6 addresses.
- View your subnet mask and default gateway.
- Identify your DNS servers.
- Check your MAC address.
- Release and renew DHCP-assigned IP addresses.
- Display and clear your DNS cache.
- Troubleshoot Internet connectivity issues.
Network administrators, IT professionals, and everyday Windows users rely on this tool to diagnose network-related problems.
How to Use the Ipconfig Command
Before using ipconfig, you need to open the Windows Command Prompt.
- Press the Windows + R keys on your keyboard.
- Type cmd in the Run window.
- Press Enter to open Command Prompt.
- Type your desired ipconfig command and press Enter.
You can also use ipconfig in Windows PowerShell or Windows Terminal. Some options require administrator privileges.
The basic syntax is:
ipconfig [parameter]
Each parameter performs a different networking task. Let’s explore the most useful ones.
Ipconfig Command Examples
1. Display Basic Network Configuration
To view your current network configuration, run:
ipconfig
The output may look like this:
Wireless LAN adapter Wi-Fi:
IPv4 Address. . . . . . : 192.168.1.105
Subnet Mask . . . . . . : 255.255.255.0
Default Gateway . . . . : 192.168.1.1
Here is what each value means:
- IPv4 Address: The address assigned to your device on the network.
- Subnet Mask: Determines which portion of the IP address identifies the network.
- Default Gateway: The device, usually your router, that connects your local network to other networks.
Windows displays information for multiple network adapters, including Wi-Fi, Ethernet, and virtual network interfaces.
2. Display Detailed Network Information
If you need more information about your network configuration, use:
ipconfig /all
This command displays additional details, including:
- Hostname
- Physical address (MAC address)
- DHCP status
- DHCP server
- DNS servers
- IP address lease information
- Network adapter description
The ipconfig /all command is particularly useful when investigating incorrect network settings or DNS resolution problems.
For example, if websites fail to load, you can check which DNS servers your computer uses.
3. Display the DNS Cache
Windows temporarily stores DNS information to speed up future domain name lookups. This information forms the local DNS cache.
To view its contents, run:
ipconfig /displaydns
The output may include:
Record Name . . . . . : example.com
Record Type . . . . . : 1
Time To Live . . . . : 300
Data Length . . . . . : 4
A (Host) Record . . . : 192.0.2.10
The Time to Live (TTL) indicates how much longer the cached record remains valid.
This command helps you determine whether Windows has stored DNS information for a particular domain.
4. Flush the DNS Cache
Sometimes, cached DNS records become outdated or incorrect. As a result, your browser may fail to open a website or attempt to connect to an old IP address.
To clear the Windows DNS cache, run:
ipconfig /flushdns
If the operation succeeds, Windows displays:
Successfully flushed the DNS Resolver Cache.
Flushing the DNS cache removes locally cached DNS responses and allows Windows to request updated information during subsequent lookups.
This command can help resolve website accessibility issues, DNS errors, and certain problems following DNS record changes. However, it does not clear the caches of external DNS resolvers.
If the problem continues, read our guide to DNS timeout causes and fixes.
5. Release Your IP Address
The following command releases your current DHCP-assigned IPv4 configuration:
ipconfig /release
DHCP (Dynamic Host Configuration Protocol) automatically assigns IP addresses and other network settings to devices.
Releasing an IP address temporarily interrupts network connectivity on affected adapters. This option can help when troubleshooting DHCP configuration problems.
Avoid running it during an active remote connection, as you may lose access to the computer.
6. Renew Your IP Address
To request a renewed IP address configuration from the DHCP server, run:
ipconfig /renew
The DHCP server may assign the same IP address or a different one.
You can also combine the release and renew commands:
ipconfig /release
ipconfig /renew
This combination is useful when your computer receives an incorrect network configuration or experiences connectivity problems related to DHCP.
7. Renew the IP Address of a Specific Network Adapter
If your computer has multiple network adapters, you can renew the configuration of a specific adapter without affecting the others.
For example:
ipconfig /renew “Wi-Fi”
Replace Wi-Fi with the name of your network adapter.
This option is particularly useful for computers that use Ethernet, wireless connections, or virtual network adapters simultaneously.
8. Refresh DNS Registration
The following command requests a dynamic DNS registration update:
ipconfig /registerdns
It is mainly useful in corporate networks and Windows domain environments that support dynamic DNS updates.
For DHCP-managed Windows clients, Microsoft recommends using ipconfig /renew instead to update DNS registration.
9. Display Available Ipconfig Options
If you forget a parameter or want to explore additional options, run:
ipconfig /?
Windows displays the available parameters, their syntax, and usage information.
Ipconfig Command Cheat Sheet
The following table summarizes the most useful ipconfig commands.
| Command | Description |
| ipconfig | Displays basic network configuration |
| ipconfig /all | Displays detailed network information |
| ipconfig /displaydns | Displays the local DNS cache |
| ipconfig /flushdns | Clears the local DNS cache |
| ipconfig /release | Releases the DHCP-assigned IPv4 configuration |
| ipconfig /renew | Renews the DHCP-assigned IPv4 configuration |
| ipconfig /release6 | Releases the DHCPv6 configuration |
| ipconfig /renew6 | Renews the DHCPv6 configuration |
| ipconfig /registerdns | Requests dynamic DNS registration |
| ipconfig /? | Displays available command options |
How to Troubleshoot Network Problems With Ipconfig
Suppose your computer connects to Wi-Fi, but websites do not load.
Start by running:
ipconfig /all
Check whether your device has a valid IP address, default gateway, and DNS server configuration.
If your IPv4 address begins with 169.254, your computer may have failed to obtain an IP address from the DHCP server. Try renewing your IP configuration.
If your network configuration appears correct but certain websites remain inaccessible, flush your DNS cache.
Ipconfig vs Nslookup vs Dig
Although these three commands help troubleshoot networking and DNS problems, they serve different purposes.
| Feature | Ipconfig | Nslookup | Dig |
| View local IP configuration | Yes | No | No |
| Clear local DNS cache | Yes | No | No |
| Query DNS servers | No | Yes | Yes |
| Inspect DNS records | Cached records only | Yes | Yes |
| Renew DHCP configuration | Yes | No | No |
Ipconfig focuses on your computer’s network settings, while Nslookup and Dig help you investigate DNS responses.
To learn more about DNS diagnostics, explore our Dig command guide for beginners and discover how to check DNS records for a domain.
What Is the Ipconfig Equivalent in Linux and macOS?
Ipconfig is primarily a Windows networking utility.
On Linux, you can use the following command to display IP address information:
ip addr
On macOS, you can use:
ifconfig
Although macOS also includes a utility called ipconfig, its syntax and functionality differ from the Windows version.
Conclusion
The ipconfig command is one of the most useful Windows networking utilities. It allows you to inspect IP addresses, identify DNS servers, clear cached DNS records, renew DHCP configurations, and diagnose connectivity problems.
Start by familiarizing yourself with ipconfig, ipconfig /all, and ipconfig /flushdns. These commands can help you investigate many everyday network and DNS issues without installing additional software.

Hi, I’m Bella, a technology enthusiast who enjoys making complex tech topics clear, practical, and easy to understand. Outside of writing, I love trail running, biking, traveling, and photography.


