Luna Tech

Tutorials For Dummies.

Networking: Useful Commands

2022-01-01


1. ping

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

example: ping google.com


2. nslookup

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

example 1: nslookup google.com

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

Note

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 google.com

Note

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

Note