Is there a built-in command line tool that will do reverse DNS look-ups in Windows? I.e., something like <toolname> w.x.y.z => mycomputername
I've tried:
nslookup
: seems to be forward look-up only.host
: doesn't existdig
: also doesn't exist.
I found "What's the reverse DNS command line utility?" via a search, but this is specifically looking for a *nix utility, not a Windows one.
Thanks a lot!
-
ping -a w.x.y.z
Should resolve the name from the IP address.
alastairs : This worked better than nslookup as the conflicting machine is on another domain. Thanks a lot!From Peter -
nslookup -type=ptr 10.1.x.x
From M Aguilar -
nslookup will do reverse lookups in Windows.
C:\>nslookup star.slashdot.org Server: my-dns-server Address: 10.242.0.1 Name: star.slashdot.org Address: 216.34.181.48 C:\>nslookup 216.34.181.48 Server: my-dns-server Address: 10.242.0.1 Name: star.slashdot.org Address: 216.34.181.48
From Evan Anderson -
nslookup <ip>
Does what you're looking for. It will tell you the server you're querying and the result.
For example:
c:\>nslookup 192.168.101.39 Server: dns1.local Address: 192.168.101.24 Name: enigma.local Address: 192.168.101.39
alastairs : This was failing with a message "can't find w.x.y.z: Non-existent domain" and I couldn't work out why. I tried @Peter's answer, and found the conflicting machine was on another domain. From Mark Turner -
nslookup will do reverse DNS on windows just as it can do it on linux.
Of course, there isn't a reverse entry for every ip address
Rowland Shaw : Good point that not all hosts will have a PTR record created for themFrom theotherreceive -
You can use the standard NSLOOKUP command:
nslookup 123.123.123.123
In order to get a result there has to be a PTR record registered for the IP address in question.
From splattne -
Use nslookup like this:
nslookup -type=PTR 127.0.0.1
From ko-dos
1 comments:
nslookup -type=PTR 127.0.0.1
Post a Comment