User Tip #119: IPconfig displays Windows NT/W2K/XP ip information |
Hits: Failed to execute CGI : Win32 Error Code = 3
|
ipconfig
You will see the default display: your ip address, network mask and gateway address for your nic card and ras modem. Win9x had a nice gui version, winipcfg, but Microsoft did not include it in the Windows NT / Windows 2000 / Windows XP line. Instead you must use the command line ipconfig . To get all the options for ipconfig, at the commandline, type:
ipconfig /?
USAGE: ipconfig [/? | /all | /renew [adapter] | /release [adapter] | /flushdns | /displaydns | /registerdns | /showclassid adapter | /setclassid adapter [classid] ] where adapter Connection name (wildcard characters * and ? allowed, see examples) Options: /? Display this help message /all Display full configuration information. /release Release the IP address for the specified adapter. /renew Renew the IP address for the specified adapter. /flushdns Purges the DNS Resolver cache. /registerdns Refreshes all DHCP leases and re-registers DNS names /displaydns Display the contents of the DNS Resolver Cache. /showclassid Displays all the dhcp class IDs allowed for adapter. /setclassid Modifies the dhcp class id. The default is to display only the IP address, subnet mask and default gateway for each adapter bound to TCP/IP. For Release and Renew, if no adapter name is specified, then the IP address leases for all adapters bound to TCP/IP will be released or renewed. For Setclassid, if no ClassId is specified, then the ClassId is removed. Examples: > ipconfig ... Show information. > ipconfig /all ... Show detailed information > ipconfig /renew ... renew all adapters > ipconfig /renew EL* ... renew any connection that has its name starting with EL > ipconfig /release *Con* ... release all matching connections, eg. "Local Area Connection 1" or "Local Area Connection 2"IP Refresh - Ipconfig and DHCP Client diagnostic Tool is a commercial utility with support for more complex situations.
A winipcfg-like command, wntipcfg.exe is in the netmgmt.cab file of the Windows 2000 server Resource Kit.
The results of issuing the ipconfig /displaydns on my home Windows 2000 box:
Windows IP Configuration www.techrepublic.com ---------------------------------------- Record Name . . . . . : www.techrepublic.com Record Type . . . . . : 1 Time To Live . . . . : 1834 Data Length . . . . . : 4 Section . . . . . . . : Answer A (Host) Record . . . : 208.50.157.239 Record Name . . . . . : techrepublic.com Record Type . . . . . : 2 Time To Live . . . . : 1834 Data Length . . . . . : 4 Section . . . . . . . : Authority NS Record . . . . . : DNS-SNV.techrepublic.com Record Name . . . . . : techrepublic.com Record Type . . . . . : 2 Time To Live . . . . : 1834 Data Length . . . . . : 4 Section . . . . . . . : Authority NS Record . . . . . : DNS-LOU.techrepublic.com Record Name . . . . . : techrepublic.com Record Type . . . . . : 2 Time To Live . . . . : 1834 Data Length . . . . . : 4 Section . . . . . . . : Authority NS Record . . . . . : DNS-BTF.techrepublic.com Record Name . . . . . : DNS-SNV.techrepublic.com Record Type . . . . . : 1 Time To Live . . . . : 1834 Data Length . . . . . : 4 Section . . . . . . . : Additional A (Host) Record . . . : 208.50.157.213 Record Name . . . . . : DNS-LOU.techrepublic.com Record Type . . . . . : 1 Time To Live . . . . : 1834 Data Length . . . . . : 4 Section . . . . . . . : Additional A (Host) Record . . . : 12.43.21.240 Record Name . . . . . : DNS-BTF.techrepublic.com Record Type . . . . . : 1 Time To Live . . . . : 1834 Data Length . . . . . : 4 Section . . . . . . . : Additional A (Host) Record . . . : 12.43.21.13 ns1.canuck.gen.nz ---------------------------------------- Record Name . . . . . : ns1.canuck.gen.nz Record Type . . . . . : 1 Time To Live . . . . : 2145 Data Length . . . . . : 4 Section . . . . . . . : Answer A (Host) Record . . . : 206.40.46.70 ns1.realnames.com ---------------------------------------- Record Name . . . . . : ns1.realnames.com Record Type . . . . . : 1 Time To Live . . . . : 80038 Data Length . . . . . : 4 Section . . . . . . . : Answer A (Host) Record . . . : 216.86.229.5 ns2.sourcefire.com ---------------------------------------- Record Name . . . . . : ns2.sourcefire.com Record Type . . . . . : 1 Time To Live . . . . : 44872 Data Length . . . . . : 4 Section . . . . . . . : Answer A (Host) Record . . . : hobbes.auburn.net ---------------------------------------- Record Name . . . . . : hobbes.auburn.net Record Type . . . . . : 1 Time To Live . . . . : 35205 Data Length . . . . . : 4 Section . . . . . . . : Answer A (Host) Record . . . : 209.16.236.10 dns2.dc.msft.net ---------------------------------------- Record Name . . . . . : DNS2.DC.MSFT.NET Record Type . . . . . : 1 Time To Live . . . . : 23278 Data Length . . . . . : 4 Section . . . . . . . : Answer A (Host) Record . . . : 207.68.128.152 nsjersey.realnames.com ---------------------------------------- Record Name . . . . . : nsjersey.realnames.com Record Type . . . . . : 1 Time To Live . . . . : 79515 Data Length . . . . . : 4 Section . . . . . . . : Answer A (Host) Record . . . : ns7.flycast.com ---------------------------------------- Record Name . . . . . : ns7.flycast.com Record Type . . . . . : 1 Time To Live . . . . : 12469 Data Length . . . . . : 4 Section . . . . . . . : Answer A (Host) Record . . . : 216.52.6.21 ns3.europe.yahoo.com ---------------------------------------- Record Name . . . . . : ns3.europe.yahoo.com Record Type . . . . . : 1 Time To Live . . . . : 9861 Data Length . . . . . : 4 Section . . . . . . . : Answer A (Host) Record . . . : 217.12.4.71 ze.akadns.net ---------------------------------------- Section . . . . . . . : Answer A (Host) Record . . . : 12.47.217.11 Section . . . . . . . : Answer