Use the Dns.Resolve method to get the IP addresses. In the following code, a hostname is provided to the Resolve method that returns an IPHostEntry from which a string of addresses can be constructed and returned: using System; using System.Net; using System.Text; //
Powershell : Resolve Hostname from IP address and vice versa Mar 14, 2020 Get IP Address from DNS Hostname in C# - How-To Geek Nov 25, 2006
Java get Hostname - CodeBlogMoney
IP to Hostname - Best Online Tool | Code Beautify IP address to hostname lets you get the hostname, Reverse Lookup (PTR Record) online. Enter the IP address and get the results. How to determine your computer's hostname and hardware
How to get the ip address of a computer from its hostname?
You can also use 'host' command to find IP address associated with a hostname. Since a hostname can have multiple IP address, its better to use a DNS lookup utillity like host or nslookup. This way you will get all the IP address which that DNS name (hostname) is pointing. Commands like ping will only show one of the IP address mapped to the How to get Networked Computer Name from IP Address on a Mar 13, 2015 windows - Resolve host name from IP address - Server Fault