ayi <p>What’s the command to find the name of a computer given its IP address?</p> <p>I always forget what this command is, but I know it exists in Windows and I assume it exists on the *nix command-line.</p>
ayi_2 <p>The commands <a href="https://linux.die.net/man/1/dig"><code>dig</code></a> and <a href="https://linux.die.net/man/1/host"><code>host</code></a> should be what you’re looking for <img src="//forum-microsoft.fr/images/emoji/twitter/wink.png?v=15" title=":wink:" class="emoji" alt=":wink:" loading="lazy" width="20" height="20"></p> <p>On *nix systems, you can use this command:</p> <pre><code class="lang-auto">dig -x [address] </code></pre> <p>Alternatively, you can add <code>+short</code> at the end of the <code>dig</code> command to output only the DNS result.</p> <p>There’s also <a href="https://linux.die.net/man/1/nslookup"><code>nslookup</code></a> on both *nix and Windows systems for reverse DNS requests.</p>