Sunday, July 31, 2016

domain name system - What's the command-line utility in Windows to do a reverse DNS look-up?



Is there a built-in command line tool that will do reverse DNS look-ups in Windows? I.e., something like w.x.y.z => mycomputername



I've tried:





  • nslookup: seems to be forward look-up only.

  • host: doesn't exist

  • dig: 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.


Answer



ping -a w.x.y.z



Should resolve the name from the IP address if the reverse lookup zone has been set up properly. If the reverse lookup zone does not have an entry for the record, the -a will just ping without a name.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...