What's the command to find the name of a computer given its IP address?
I always forget what this command is, but I know it exists in Windows and I assume it exists on the *nix command-line.
command-line-interfacedomain-name-systemlinuxreverse-dnswindows
What's the command to find the name of a computer given its IP address?
I always forget what this command is, but I know it exists in Windows and I assume it exists on the *nix command-line.
Best Answer
The commands
dig
andhost
should be what you're looking for ;)On *nix systems, you can use this command:
Alternatively, you can add
+short
at the end of thedig
command to output only the DNS result.There's also
nslookup
on both *nix and Windows systems for reverse DNS requests.