Insights
How to check reverse DNS with nslookup
Check PTR records with nslookup, compare forward answers, and distinguish missing reverse DNS from timeouts using the resolver you choose.

On this page
In Windows Command Prompt, run nslookup IP_ADDRESSOpens in a new tab to check reverse Domain Name System (DNS) for an Internet Protocol (IP) address. Use nslookup IP_ADDRESS DNS_SERVER to query a specific resolver, the server you ask for DNS answers. A pointer (PTR) recordOpens in a new tab gives you the name linked to that address in DNS.
In short:
- Choose your resolver. Put its address after the IP you're checking.
- Check the match. Look for the original IP in the returned name's forward records.
- Timeout isn't absence. Check whether the resolver answers a known-good query.
Run the lookup against the resolver you want to check
Use Windows Command Prompt on a device and network you're allowed to troubleshoot. These lookups are read-only and don't need rollback. Keep private addresses and internal names on approved internal resolvers, not public resolvers or web lookup tools.
Assume you're checking 192.168.1.20 and your approved internal resolver is 192.168.1.53. Replace those addresses with your own and choose one of these two commands.
1. Use the default resolver if it's approved for this query.
nslookup 192.168.1.20
2. Add the resolver address to select it for this query.
nslookup 192.168.1.20 192.168.1.53
3. Check which server answered and read the PTR name.
This schematic output shows what a reply could look like. It isn't a live lookup result.
Server: <resolver name>
Address: 192.168.1.53
Name: host20.example.com
Address: 192.168.1.20
The first Address line identifies the resolver. The Name line in the answer is the PTR name. If the resolver address isn't the one you intended, correct the query before interpreting the result. For more on general syntax and output, see how to read nslookup resultsOpens in a new tab.
Check whether the returned name points back
1. Look up the returned name on the same resolver.
In Windows Command Prompt, use an A record query for this Internet Protocol version 4 (IPv4) example.
nslookup -type=A host20.example.com. 192.168.1.53
Replace host20.example.com. with the returned name and keep the trailing period so Windows doesn't append a DNS suffix. Use the resolver address from your reverse lookup. If the original address is Internet Protocol version 6 (IPv6), use -type=AAAA instead of -type=A.
2. Compare the forward addresses with the original IP.
If several addresses come back, the check passes when any one matches the original IP. A successful address answer that leaves it out shows a mismatch in the answers you checked. Check the intended forward and reverse records in that case. If the forward query times out, record the match as unresolved.
For the example, suppose the A answer includes 192.168.1.20. Record the target as 192.168.1.20, the resolver as 192.168.1.53, the PTR as host20.example.com., and the forward result as match. If the name wasn't what you expected, check whether it needs to meet a naming requirement before asking for a change.
Tell a missing PTR from a lookup error
The message tells you whether the resolver reported a missing name or record, returned an error, or didn't answer in time.
| What you see | What it means | What to check |
|---|---|---|
Nonexistent domain (NXDOMAIN) | Resolver reports the reverse name doesn't exist | Target IP and resolver |
No records | Reverse name exists, but the resolver returned no PTR | Target IP and resolver |
| Timeout | No reply within the wait and retry limits | Intended resolver and a known-good approved query |
Refused | Resolver declined the query | Resolver query policy |
Server failure | Resolver couldn't return a valid answer | Resolver health |
For 192.168.1.20, the reverse name is 20.1.168.192.in-addr.arpa. That's the name a Nonexistent domain reply refers to, not the hostname you expected to get back. If you need a PTR after checking the IP and resolver, take either negative reply to the reverse zone administrator.
Compare the same PTR query through another approved resolver only if it's meant to answer for the same names. Keep each result with its resolver address so a negative reply from one doesn't become a claim about every resolver.
Who can change a PTR record
Ask the administrator of the delegated reverse zone for the address range to check or change the PTR. Control of the forward name doesn't give you control of that zone. If you don't know who runs it, start with the organization that assigned the public IP or your internal DNS team for a private address.
Send the target IP, the resolver you queried, the PTR name or exact error, the forward result, and the intended hostname. A PTR shows a DNS mapping, and a forward match shows that the answers agree. Neither proves host identity, address ownership, or safety, and neither tells you whether a service is reachable or mail will be delivered.