Home / Networking Commands / nslookup

nslookup

DNS Lookup Tool

What Does It Do?

The nslookup command looks up the IP address of a website or checks DNS information. It's like looking up someone's phone number in a directory.

When you type a website name like "google.com", DNS servers translate it to an IP address like "142.250.80.46". This command lets you see that translation and check if DNS is working properly. Super useful for troubleshooting website access issues.

Advertisement

[ Insert Google AdSense Banner Code Here ]

When Should I Use It?

Find IP Address

Look up the IP address of any website or domain name.

DNS Troubleshooting

Verify if DNS is working correctly or causing issues.

Check DNS Records

View mail servers (MX), nameservers (NS), and other DNS records.

Reverse DNS Lookup

Find the domain name associated with an IP address.

Common Commands

nslookup google.com

Find the IP address for google.com.

nslookup 8.8.8.8

Reverse lookup - find the domain name for IP address 8.8.8.8.

nslookup -type=mx google.com

Look up mail server records for google.com.

nslookup google.com 8.8.8.8

Query a specific DNS server (Google's DNS in this case).

nslookup -type=ns google.com

Find the name servers responsible for google.com.

Try It Yourself

Practice nslookup commands in the interactive terminal below: