Friday, April 6, 2012

Dos / Command Line Useful Commands

Go to Start, type then type cmd if this doesn't work type "run",click on run, then type "cmd"

Mac address on the network : arp -a




Go to Start, type then type cmd if this doesn't work type "run",click on run, then type "cmd"

Flush DNS : ipconfig /flushdns 


Go to Start, type then type cmd if this doesn't work type "run",click on run, then type "cmd"

Find all active hostnames and IP address on Network : nmap -sP 192.168.0.0/24
if your network is a 1.network then type nmap -sP 192.168.1.0/24



Detailed network information : ipconfig /all 


Finding the IP Address of the computer according to the DNS table nslookup pcname



Finding the IP Address of a Host : nslookup hostname 
 eg : nslookup google.com



Ping the computer you are trying to access using the PC name or domain :  ping pcname


Ping Domain : eg ping google.com




Reset NIC, clears cache and network settings : netsh int ip reset C:\reset.log



No comments: