


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!

What is Windows 11 Education? If you want to install this system on your PC, how can you do this work? This post from php.cn gives a detailed guide on Windows 11 Education download ISO and how to install it from the ISO file.

Are your Outlook emails not showing up in Inbox, but showing in search? What steps can you do when Outlook not showing all emails? Now in this post given by php.cn Solution, we will introduce several useful methods to help you address the issue and g

If you are trying to power off your computer but encountering the Windows stuck on shutting down screen issue, you can find several helpful fixes from this php.cn guide. Just keep reading to see the details.
![[Complete Guide] How to Fix Microsoft Teams Error CAA50021? - MiniTool](https://img.php.cn/upload/article/001/242/473/174559963580964.png?x-oss-process=image/resize,p_40)
If you are looking for effective solutions to the Microsoft Teams error code CAA50021, this post is worth reading. In this post, php.cn introduces how to get rid of this error in detail. Simply follow it to solve your problem.

Do you want to make Windows 11 or Windows 10 look like Windows XP? Do you know how to do this on your device? You can try the WindowBlinds 11 Beta version now. In this post, php.cn Software will tell you how to download WindowBlinds 11 and introduce

If you can’t use the universal way to uninstall Windows updates due to An error has occurred, Not all of the updates were successfully uninstalled, you can try the methods mentioned in the php.cn post to solve the issue.

What is wacom_tablet.exe? Is the Windows process safe to run? Some people find wacom_tablet.exe can't end process and when this Windows system error happens, you may be overwhelmed and don’t know where to start. On php.cn, this article will resolve y

ChatGPT errors are various and we’ve detected suspicious behavior is a common one. If you are trapped in this issue, what should you do? Go on reading this post from php.cn and you can find some useful fixes to help you get rid of trouble.


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

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SublimeText3 Chinese version
Chinese version, very easy to use

WebStorm Mac version
Useful JavaScript development tools
