


Use ipconfig Commands to Get/Renew IP Address & Flush DNS - MiniTool
This article introduces the ipconfig
command in Windows system, covering its various uses, such as obtaining IP addresses, releasing and renewing IP addresses, refreshing DNS caches, etc. Mastering these commands can effectively solve network configuration problems.
What is ipconfig
command?
ipconfig
is the abbreviation of Internet protocol configuration, which is a console application in the Windows operating system to display the current TCP/IP network configuration value, such as IP address. It can also refresh the DNS (domain name system) settings, update the DHCP (dynamic host configuration protocol) settings, etc. ipconfig
command is also suitable for macOS and ReactOS systems.
Detailed explanation of the main ipconfig
command
Before using the ipconfig
command, you must open the Windows command prompt. Press Windows R , enter cmd , and press Ctrl Shift Enter to run the command prompt as administrator.
Get the IP address
Enter the ipconfig
command (without parameters) in the command prompt window and press Enter . This command will display the IPv4 and IPv6 addresses, subnet masks, and default gateways for all adapters.
The ipconfig
command displays the basic TCP/IP configuration for all adapters. To display the full TCP/IP configuration for all adapters on your computer, enter ipconfig /all
command and press Enter . The information displayed by ipconfig /all
command is more detailed than the ipconfig
command, including IPv4 address, IPv6 address, DNS server, MAC address, adapter description, DHCP details, etc.
ipconfig /release
command
This command releases IPv4 addresses of all network adapters. To release all adapters' IPv6 addresses, type ipconfig /release6
command and press Enter.
To release the IPv4/IPv6 address of a specific adapter, you can use ipconfig /release [适配器]
or ipconfig /release6 [适配器]
commands. Replace "[Adapter]" in the command with the exact name of the target adapter. You can view the names of all adapters by entering the ipconfig
command.
ipconfig /release
command sends a DHCP release notification to the DHCP server, forcibly release the current DHCP configuration and IP address, and marks the IP address of the old client as available.
ipconfig /renew
command
After releasing the old IP address using the ipconfig /release
command, you can enter ipconfig /renew
command and press Enter to request a new IP address for the client. This command will update the DHCP configuration for all adapters.
To update the IP address of a specific adapter, you can use ipconfig /renew [适配器]
command. For IPv6, you can use the ipconfig /renew6 [适配器]
command. Enter the real adapter name in the command.
ipconfig /displaydns
command
The computer creates a local cache of all DNS records. DNS resolver cache is used to convert domain names to IP addresses. To check the details of all DNS records, you can enter the ipconfig /displaydns
command in the command prompt and press Enter. It will display information such as DNS record name, type, survival time, data length, section, etc.
ipconfig /flushdns
command
This command refreshes and resets the DNS resolver cache. When troubleshooting DNS issues, you can use this command to clear the problematic DNS cache entries and ensure that future requests use the latest DNS information.
ipconfig /registerdns
command
This command refreshes all DHCP leases and re-registers DNS names.
ipconfig /showclassid
command
This command displays all DHCP class IDs for all adapters. Enter ipconfig /showclassid6
command to display all IPv6 DHCP class IDs. For a specific adapter, add the adapter name at the end of the command.
ipconfig /setclassid
command
Enter this command to configure the DHCP class ID of the adapter. For a specific adapter, add the adapter name at the end of the command.
ipconfig /?
Command
Displays help information for the ipconfig
command.
Summarize
This article introduces various ipconfig
commands. Now you can check the IP address using the ipconfig
command, release and renew the IP address using the ipconfig /release
and ipconfig /renew
commands, display or reset/refresh DNS using ipconfig /displaydns
and ipconfig /flushdns
commands, etc.
If you have any other computer problems, please visit the official MiniTool software website. (The last sentence must be modified or deleted according to the actual situation)
The above is the detailed content of Use ipconfig Commands to Get/Renew IP Address & Flush DNS - MiniTool. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The Steam Cloud error can be caused by many reasons. To play a game smoothly, you need to take some measures to remove this error before you launch the game. php.cn Software introduces some best ways as well as more useful information in this post.

You may see the “A connection to the Windows Metadata and Internet Services (WMIS) could not be established.” error on Event Viewer. This post from php.cn introduces how to remove the Windows Metadata and Internet Services problem.

KB5035942 update issues - crashing system commonly happens to users. Inflicted people hope to find a way out of the kind of trouble, such as crashing system, installation, or sound issues. Targeting these situations, this post published by php.cn wil

OneDrive is an online cloud storage service from Microsoft. At times, you might find OneDrive fail to upload photos to the cloud. If you are on the same boat, keep reading this post from php.cn Software to get effective solutions now!

If you have a program called PC App Store on your computer and did not purposely install it, then your PC may be infected with the malware. This post from php.cn introduces how to remove PC App Store malware.

Chris Titus Tech has a tool called Windows Utility that can help you easily create a debloated Windows 11/10 ISO to install a clean system. php.cn offers a full guide on how to do this thing using the Chris Titus tool.

Is Brothers: A Tale of Two Sons Remake not launching? Encountering Brothers: A Tale of Two Sons Remake black screen? Here this post on php.cn offers you tested solutions to assist you in addressing this problem.

Are you questioned about an issue that MSConfig keeps reverting to selective startup on your Windows? How to switch to normal startup if you require it? Try the methods explained in this php.cn post to find one that works for you.
