You paste an IP address into a terminal, get a hostname back in under a second, and file it as proof that the sending server is configured correctly. Three days later the campaign is in spam anyway, and the same person who ran that lookup is now blaming the DNS record they never verified.
An IP lookup returns a claim, not a verdict. The command you type decides which question gets asked, the resolver you hit decides who answers it, and the label above the result decides how much weight that answer deserves. Read those three things correctly and nslookup IP address checks become the fastest diagnostic you own. Skip them and you'll rewrite a record that was never broken while the fault sits in authentication or reputation.
Table of Contents
ToggleThe nslookup Commands for Finding an IP Address
Two commands cover almost every IP question you'll face. nslookup example.com goes from a name to an address. nslookup 93.184.216.34 goes from an address to a name. Everything else is a variation on two levers, which record type you ask for and which server you ask.
| Task | Command | What You Get |
|---|---|---|
| Name to IPv4 and IPv6 | nslookup example.com |
A and AAAA records |
| Reverse lookup, IPv4 | nslookup 93.184.216.34 |
PTR hostname for the IP |
| Reverse lookup, IPv6 | nslookup 2001:db8::1 |
PTR hostname, if one is published |
| Ask a specific resolver | nslookup example.com 8.8.8.8 |
Answer from that server only |
| Mail servers for a domain | nslookup -querytype=MX example.com |
MX records and their priorities |
The forward query is the one many users mean. Run it against a host that carries both address families and you'll get two A records and one AAAA record back. A modern browser or operating system generally attempts the IPv6 address first and falls back to IPv4 when that path stalls, so the address printed first on screen isn't automatically the one your traffic uses.
Adding a resolver at the end, as in nslookup example.com 8.8.8.8, changes the tool from a lookup into a comparison. The answer comes from that named server and nothing else, which is how you prove whether your own resolver is the one handing out a stale or wrong address.
The MX variant asks a different question entirely. A successful A lookup only tells you a hostname resolves. It says nothing about where mail lands, which is why outbound teams who only ever check A records miss misrouted mail setups completely.
Underneath all five commands sits a system older than most of the internet: the Domain Name System, created in 1983 by Paul Mockapetris and Jon Postel, documented in RFC 882 and RFC 883, then revised in RFC 1034 and RFC 1035 in November 1987, as CENTR's history of the DNS sets out. The command doesn't find an address by itself. It sends a query to a name server and prints the A, AAAA or PTR records that come back.
The rule to keep: a forward lookup starts with a name, a reverse lookup starts with an address, and the command itself barely changes.
On Windows, the first two lines name the answering server and its address before any record appears. If the block under them is labelled non-authoritative, you're reading a cached copy rather than the zone's live data.
Reading Each Line of the Output
The output is short, which is exactly why people misread it. Here is a typical forward lookup on Windows.
Server: dns.google
Address: 8.8.8.8Non-authoritative answer:
Name: example.com
Addresses: 93.184.216.34
2606:2800:220:1:248:1893:25c8:1946
Server and Address name the resolver that answered you, not the domain you asked about. That distinction matters: the operator of 8.8.8.8 produced this reply, and if the reply is wrong, the fault may sit in that server's cache rather than in the domain owner's zone file.
Non-authoritative answer means the server passed on a copy it held from an earlier query instead of pulling fresh data from the zone's own nameserver. It isn't an error. Almost every answer you see during normal browsing is non-authoritative.
Name and Addresses carry the hostname and each of its IP addresses. A host with two addresses returns two lines, and their order tells you nothing about which one a given visitor will reach.
What a reverse lookup looks like instead
Run the command on an address and the labels shift. The Name line now holds the PTR hostname, which is frequently a generic provider name like a hosting company's server designation rather than the brand domain you expected. That's not a misconfiguration by itself. It means the reverse zone belongs to whoever holds the IP block.
Non-existent domain is the label people panic over. It means no record exists for the name or address you asked about. The host behind that address can be perfectly online and serving traffic while its PTR record is unpublished.
Write down the answering server, whether the answer was authoritative, and the time you ran it. A screenshot without those three details is a rumour, not evidence.
Turning an IP Back Into a Hostname
When you hand nslookup an address, it doesn't search for that address. It rewrites the address into a name and asks for a PTR record at that name. For the IPv4 address 93.184.216.34, the octets reverse and the zone in-addr.arpa is appended, giving the query name 34.216.184.93.in-addr.arpa, as this RFC 1035 technical guide explains. RFC 1035 defines PTR as resource-record type 12 and sets out the in-addr.arpa structure for address-based queries. That's why a live IP can still return Non-existent domain: no one published a PTR record for it.
Run the steps in order and you'll know within a minute whether the record exists and who controls it.
- Run
nslookup 93.184.216.34and read the Name line. - Take whatever hostname comes back and run
nslookupon that hostname. - Compare the address it returns with your original IP. A match is forward-confirmed reverse DNS, the only version of a reverse lookup that carries real diagnostic weight.
- If you get Non-existent domain, the fix isn't in your DNS panel. Reverse records are published by the holder of the IP block or its upstream provider, so the request goes to your host or your ISP, not to the company that manages your domain.
- For IPv6, the reverse zone is
ip6.arpaand delegation follows 4-bit nibble boundaries, which the nslookup.io reverse IP lookup guide notes must be maintained by network operators or their LIRs. An IPv6 address can therefore have no PTR record while the IPv4 address for the same host has a clean one.
Say you inherit a mail server sending from an address that resolves to something like a hosting provider's generic server name. That's the signature of a PTR record configured by the provider at the block level, not a record pointing at your mail hostname. It will pass a bare lookup and still fail a forward-confirmed check.
If you want to see the mechanics in motion, this walkthrough covers the query and the record it returns.
A PTR record shows that someone configured a name for that address. It does not prove the address is yours, that it's the address your mail leaves from, or that anyone should trust it.
Querying a Specific DNS Server and Record Type
A one-line query never asks a question you chose. It asks your configured resolver, which might be a corporate server, an ISP resolver, a VPN endpoint or a browser-level encrypted service. You get a real answer to an unclear question.
Interactive mode fixes that. Type nslookup with no arguments, get the > prompt, then server 8.8.8.8 switches the target resolver and set type=MX changes the question. Microsoft's nslookup command reference documents both the interactive and noninteractive modes, and the reason the distinction matters is exactly this: different servers can return different answers through caching, delegation or propagation timing.
Here is the sequence that produces a defensible comparison.
- Run
nslookup example.comand record the answer and the resolver that gave it. - Repeat the identical query against a public resolver with
nslookup example.com 8.8.8.8. - In interactive mode, run
set type=NSand enter the domain to list its authoritative nameservers. - Query one of those nameservers directly, for example
nslookup example.com ns1.provider.net, to see the zone's own view. - Line up the A, AAAA and MX answers side by side before drawing any conclusion.
The record type you choose determines what the result can prove. Microsoft's documentation on changing record types in interactive mode) shows set type=MX followed by the domain, and the equivalent one-liner nslookup -querytype=MX domain.com. The same switch accepts NS for authoritative nameservers or HINFO for host information. A clean A record never tells you which servers receive mail or which nameservers are authoritative for the zone.
Record types carry different jobs. Our guide to MX, SPF, and DKIM record syntax covers what each one is for, which helps when a lookup returns a record you weren't expecting.
A pattern worth recognising: an office Wi-Fi answer that differs from a phone hotspot answer is usually split-horizon DNS or a caching resolver, not a broken zone.
And a clean IPv4 answer says nothing about IPv6. If half your recipients sit on IPv6-capable networks, query AAAA separately rather than assuming it mirrors the A record.
Symptoms, Causes and Fixes for Odd Results
Non-existent domain is the most common result that gets escalated, and it has two very different causes. Either the name has no record, or you asked about an address with no PTR record. Check spelling first, then query the domain's authoritative nameserver before touching anything.
| Symptom | Likely Cause | Fix |
|---|---|---|
| Non-existent domain | Name has no record, or the IP has no PTR record | Check spelling, then query the authoritative nameserver |
| Request timed out | Server unreachable, or UDP 53 blocked | Test another resolver and check firewall rules for UDP and TCP 53 |
| Server failed | Broken delegation or a DNSSEC problem on the server | Query a different resolver and check the zone's NS records |
| Different IPs on two networks | Split-horizon DNS, geo-DNS or caching | Compare the authoritative answer with each resolver's answer |
| Old IP still appears | Cached record still within its TTL | Wait out the TTL, then query again |
| Short name works, full name fails | Missing search suffix | Test the fully qualified domain name |
Work the escalation in order rather than jumping to the fix you suspect. Microsoft's DNS troubleshooting guidance recommends querying the suspect resolver and comparing it against a known-good source, and lays out that sequence plainly.
- Confirm the configured DNS server with
ipconfig /all. - Test the fully qualified domain name rather than the short hostname.
- Query the target DNS server directly.
- Switch record type with
set type=Aorset type=AAAA. - Turn on packet-level detail with
set d2when you need the full response.
Two traps cost people hours. First, a timeout is a transport or server-response problem, not proof the record is missing, so check UDP port 53, retry behaviour and TCP fallback before editing a zone file. Second, nslookup bypasses the local DNS cache, the hosts file and the Windows NRPT, so it isolates DNS-server behaviour well but may not show what an application resolves through the operating system.
Encrypted DNS adds another layer to that confusion. Microsoft's DNS over HTTPS documentation describes DoH as DNS messages carried inside HTTPS, providing confidentiality and resistance to DNS-specific inspection. In practice your browser may be resolving through an encrypted service while nslookup asks a corporate resolver, so the two legitimately disagree.
If the record failing is a PTR one and your sending is cold email, our rDNS fixes for cold email teams walkthrough covers the mismatch pattern end to end.
Email IP Checks and the Next Step
The most common mistake in outbound email is treating a clean reverse lookup as proof of ownership. It isn't. An address can resolve to a friendly hostname and still belong to a shared relay, a VPN exit, a CDN edge or a residential connection you don't control.
Three separate checks answer three separate questions, and they run in this order.
- Does the sending IP resolve to a hostname? That's a PTR record and nothing more.
- Does that hostname resolve back to the same IP? Forward-confirmed reverse DNS is the check that carries weight.
- Is this the address your mail leaves from? Compare it with the received-from header on a real message, not with a number in a control panel.
Record the date, time and resolver alongside every result, because a colleague repeating the query next week needs those three details to reproduce it. A PTR record names an address. It doesn't offset a blocklisting, a failed authentication result or a complaint rate climbing in the background. Our IP reputation lookup for cold email covers what the address-level signals look like once the DNS side is clean.
When the DNS checks pass and mail still lands in spam, stop running lookups and test the message itself.
- Open the MailGenius homepage at mailgenius.com.
- Copy the test email address shown on the page.
- Send your campaign, or a single test message, from your usual sending account to that address.
- Click See Your Score to see deliverability insights and the fixes ranked by impact.
Compare that score against the lookup results you recorded. The test runs in a closed environment with a unique inbox, so it doesn't touch your real sending domain or IP reputation. Keep both sets of evidence side by side: the DNS output tells you what resolves, the score tells you what the receiving side makes of it.
A healthy PTR record can't tell you how Gmail will treat your next campaign. MailGenius takes your test email through a closed inbox and returns a score with the fixes that matter ranked in order, from authentication gaps to blacklist hits to HTML problems. Send one message to MailGenius and put the score next to the lookup results you wrote down earlier, so you're fixing the actual cause instead of the record that was never broken.

