Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reverse query

Status
Not open for further replies.

westredd

MIS
Jul 22, 2004
260
GB
Hi,

If I know the ip address of a PC on a AD lan, what command line tool can I use to find out the DNS name?

thanks

West
 
nslookup.....as long as your DNS is allowing reverse lookups.
 
thanks, i already tried nslookup, but couldnt figure out how to do a reverse query on it, or maybe there wasnt ptr records for it to return it
 
In nslookup, all you should have to do is type in the IP address and it should return the device's name. You could also use nbtstat -A IP Adress.

eg. nbtstat -A 192.168.1.10.

It should return the Netbios name. That will at least point you in the right direction. Make sure to use a capital "A".
 
thanks guys.

I think that ping -a ipaddress does it as well. cheers
 
tracert will return the dns name as well.

When I was born I was so suprised I didn't talk for 18 months
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top