A lot of times I need to see if a host's reverse DNS matches the A record it's associated with. So, what I do is
nslookup superuser.com followed by
nslookup 184.108.40.206. Is there a way to get nslookup to do this in one step?
Unfortunately, the PTR and A records are on different servers. The owner of the domain will have name servers for the A record. Smaller users will have IP addresses provided by a separate organization. That organization will have have their own name servers for the PTR records. Even where both were on the same servers, different queries are required. Even zone transfers would not work as the data is in different zones.
If you are repeating the same lookups, which is common if you are running an MX mail server, consider setting up a caching nameserver on the same host. A program like
Do you mean something like
source: Microsoft Technet
This will give you the following as an output
Sounds like you're talking about a Forward Confirmed Reverse Dns Lookup.
That isn't possible in one step with nslookup.
We've built an online tool that does do it in one step:
Just enter an ip address. It does a PTR lookup first, then an A/AAAA lookup, and tells you if they match.