1. Home
  2. Developer
  3. nslookup Online

nslookup Online

View nslookup-style results in your browser and reverse-look-up IP addresses.

For every format and option in one place, use Network Diagnostics →

Server lookup · only the address you type is sent, nothing is stored
The domain name or IP address you type is sent to a server for the DNS lookup and is not stored. Lookups only run when you press the button.
Examples: example.com, 8.8.8.8 (reverse lookup), nslookup -type=MX example.com

How to use

  1. In the input box, type a domain (example.com), an IP address (8.8.8.8), or a command such as nslookup -type=MX example.com exactly as you would in a terminal.
  2. Leave the record type on Auto to get A and AAAA for a domain, or a reverse (PTR) lookup for an IP address. Choosing a type yourself is the same as adding the -type= option.
  3. Press Look up and the result appears in the same layout as nslookup command output. Copy it as is with the copy button.

Use it when you cannot run nslookup yourself (a locked-down work PC, a phone, a server where you cannot install tools) and want the familiar output. For a per-type table with TTLs and TXT explanations, DNS Lookup fits better.

Command options

Input What it does
example.com Looks up A and AAAA
nslookup example.com A leading nslookup is optional
-type=MX example.com Looks up mail servers (MX). -querytype= and -q= mean the same
-type=TXT example.com Looks up TXT records
-type=NS example.com Looks up name servers
-type=SOA example.com Looks up zone authority info
8.8.8.8 Reverse (PTR) lookup of an IP address

The supported types are A, AAAA, CNAME, MX, NS, TXT, SOA, CAA, SRV and PTR. If you add a DNS server at the end of the command (nslookup example.com 1.1.1.1), the server cannot be changed, and the page tells you the argument was ignored.

Output format example

A domain lookup looks like this. The addresses are illustrative, and real results depend on the domain.

> nslookup example.com
Server:		(DNS over HTTPS resolver)
Address:	(not a UDP/53 server)

Non-authoritative answer:
Name:	example.com
Address: 93.184.216.34
Name:	example.com
Address: 2606:2800:21f:cb07:6820:80da:af6b:8b2c

A mail server lookup (-type=MX) prints one line per record as mail exchanger = priority host. TXT prints text = "...", name servers print nameserver = ..., and aliases print canonical name = .... SOA prints origin, mail addr, serial, refresh, retry, expire and minimum on separate lines.

Reverse lookup of an IP address

Enter an IP address and the tool looks for the PTR record at a special name such as 8.8.8.8.in-addr.arpa, which returns the host name tied to that IP. The octets are written in reverse order, so 8.8.4.4 becomes 4.4.8.8.in-addr.arpa. IPv6 reverses every hex digit and looks under ip6.arpa.

  • The reverse name has to be set by whoever owns the IP (the carrier or hosting company), so it is often missing. An empty result is not an error.
  • Private IPs (192.168.x.x, 10.x.x.x and so on) normally have no reverse name in public DNS.
  • Even when a reverse name exists, nothing guarantees that the name points back to the same IP. Do not use it as proof of identity.

How this differs from the real nslookup

  • This tool does not run the nslookup program. It rewrites the DNS answer in the nslookup output format. The layout follows nslookup on Linux and macOS, and Windows nslookup differs in a few lines, such as Addresses:.
  • The Server: and Address: lines are not a real DNS server address. They note that the lookup went through DoH (DNS over HTTPS).
  • Interactive mode (set type=) and choosing a server are not supported.
  • Lookups use public DNS only. Names that exist only in a company’s internal DNS cannot be found, and a very slow answer is abandoned.

What is sent to the server

Only the domain name or IP address you entered and the record type are sent for the lookup, and nothing is stored. Lookups run only when you press the button, and there is a request limit. This is not a tool for repeated lookups meant to load someone else’s server.

FAQ

Where do I type the nslookup command?

On Windows, use Command Prompt or PowerShell. On macOS and Linux, use the terminal and type nslookup domain. If you cannot install or run it, this page shows the same layout of result.

What does “Non-authoritative answer” mean?

It means the DNS server answered from its cache rather than being the origin (authoritative) server of that domain. Ordinary lookups almost always carry this line, so it is not an error.

I get “can’t find … NXDOMAIN”.

It means no domain with that name exists. Check the spelling, or see whether the domain has expired with Domain WHOIS Lookup.

The name I found for an IP is not the website’s address.

The reverse name is chosen by the company that leases the IP, so it often has nothing to do with the website’s domain. This is even more true when many sites share one IP.

I put a DNS server (8.8.8.8) in the command but nothing changed.

Choosing a server is not supported, so it is ignored. Lookups always go through this site’s DNS lookup server.

The value you enter is sent to a server only for the DNS lookup and is never stored.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.