Reverse DNS

You are here:
Table of contents

If you ever needed a Machine Name for an IP Address you can simply try this PowerShell command (always run as administrator).

$ComputerIPAddress = '10.10.10.10'
[System.Net.Dns]::GetHostEntry($ComputerIPAddress).HostName

There is an alternative to get more information while connection to the Active Directory (if asailable).

import-module activedirectory
$ComputerIPAddress = '10.10.10.10'
Get-ADComputer -property * -filter { ipv4address -eq $ComputerIPAddress }

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.