"; foreach ($hosts as $ip) { $out .= "IP: ".$ip."
"; } } else{ $out="Unable to find the hostname."; } //if($ip=hostname_to_ip($_REQUEST['hostname'])) // { // $out="The hostname/url ".htmlspecialchars($_REQUEST['hostname'])." resolves to ".$ip."."; // } // else $out="Unable to find the hostname"; } else $out=''; ?>

Hostname to IP Address - Host name Lookup

This tool identifies the IP address of a hostname. A hostname is a label that is assigned to a device connected to the Internet and that is used to identify the device. Hostnames (or host names) may be simple names consisting of a single word or phrase (if they refer to devices in a private network) , or they may be structured (for computers connected to the Internet).

Structure of a host name

Hostnames are composed of series of characters separated by dots. For example, "sub.xmyip.com" is a hostname. Each series must be from 1 to 63 characters long, and the entire hostname has a maximum of 253 characters.

How to use the Hostname to IP address tool


Enter the hostname in the textbox below (ie www.google.com, www.xmyip.com or lga15s47-in-f78.1e100.net) and press the Hostname to IP button.