Options for Ipconfig.exe in Windows 2000 (223413)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional
  • Microsoft Windows 2000 Datacenter Server

This article was previously published under Q223413

SUMMARY

Ipconfig.exe is a command-line tool you can use to renew and release leases obtained from a Dynamic Host Configuration Protocol (DHCP) server, and display your IP settings. This article describes these and other Ipconfig features.

MORE INFORMATION

The syntax for Ipconfig.exe is:

ipconfig [/? | /all | /release [adapter] | /renew [adapter] | /flushdns | /registerdns]

ParameterDescription
/?Display this help message
/allDisplay full configuration information
/releaseRelease the IP address for the specified adapter
/renewRenew the IP address for the specified adapter
/flushdnsPurge the DNS resolver cache
/registerdnsRefresh all DHCP leases and re-register DNS names
/displaydnsDisplay the contents of the DNS resolver cache


The first four switches are the same as those in Microsoft Windows NT 4.0 and earlier version. For additional information about these switches, click the article number below to view the article in the Microsoft Knowledge Base:

117662 IPCONFIG Diagnostic Utility: Parameters and Usage

  • The /flushdns switch flushes the list of locally cached DNS names. When a name is resolved from DNS, the client keeps it in the cache temporarily. This option removes the cached entries.
  • The /registerdns switch allows the client to re-register its dynamic DNS entries as well as renew the DHCP lease.
  • The /displaydns switch lists the contents of your resolved DNS name cache.

Modification Type:MajorLast Reviewed:11/21/2003
Keywords:kbhowto kbnetwork KB223413