Luna Tech

Tutorials For Dummies.

Networking: Useful Commands


1. ping

usage: find ip address of the domain through DNS server and send packages

example: ping

2. nslookup

usage: similar to ping, it will display which DNS server is used, we can change DNS server as well.

example 1: nslookup

example 2: nslookup server <new-server-ip>


If domain name cannot be resolved to ip address, it indicates your DNS is not working properly, you can change a DNS server and retry.

3. whois

usage: tells you who owns the domain

example: whois


For windows user, please download it first, extract and copy the content in the system’s directory to make it available: C:\Windows\System32, and then you can run it.

4. ipconfig

usage: check current device ip information

example: ipconfig