How to use
- In the input box, type a domain (
example.com), an IP address (8.8.8.8), or a command such asnslookup -type=MX example.comexactly as you would in a terminal. - 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. - 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.xand 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:andAddress: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.
Related tools
- For a per-type table, TTLs and SPF or DMARC explanations, use DNS Lookup. To check the IPs of several domains, use Domain to IP.
- For IPv6 notation and
ip6.arpanames, see the IPv4 to IPv6 converter, and for address ranges the IP subnet calculator.
The value you enter is sent to a server only for the DNS lookup and is never stored.