Would you like to learn how to translate an IP address to the hostname using Powershell? In this tutorial, we are going to show you how to use Powershell to translate a list of IP addresses to the DNS hostname on a computer running Windows.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Related tutorial – PowerShell

On this page, we offer quick access to a list of tutorials related to PowerShell.

Tutorial Powershell – List the open TCP ports

As an Administrator, start a new POWERSHELL command-line prompt.

Windows 10 - powershell elevated

Translate an IP address to a hostname.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Optionally, use a filter to get only the desired columns.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Translate an IP address to a hostname.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Optionally, use a filter to get only the desired columns.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Translate an IP address to a hostname and include the IP address.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

In our example, we translated an IP address to a Hostname using Powershell.

Congratulations! You are able to translate an IP address to a DNS hostname using Powershell.

Tutorial Powershell – Translate a list of IP addresses

As an Administrator, start a new POWERSHELL command-line prompt.

Windows 10 - powershell elevated

Create a file containing a list of IP addresses.

Copy to Clipboard

In our example, we create a file named IP in the root of drive C.

Translate all IP addresses to the hostname.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Optionally, change the result order to show the IP address first.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

In our example, we translated a list of IP addresses to hostname using a Powershell script.

Congratulations! You are able to translate a list of IP addresses to hostname using a Powershell script.