Current Location: Home> Function Categories> gethostbynamel

gethostbynamel

Get the IPv4 address list corresponding to the Internet hostname
Name:gethostbynamel
Category:Network
Programming Language:php
One-line Description:Returns the IPv4 address list for the given domain/hostname.

Definition and usage

gethostbynamel() function returns a list of IPv4 addresses for the given domain/hostname.

Example

gethostbynamel() example:

 <?php
$hostlist = gethostbynamel ( "www.gitbox.net" ) ;
print_r ( $hostlist ) ;
?>

grammar

 gethostbynamel ( hostname )

Parameter value

parameter describe
hostname Required. Specify the host name (such as "http://www.gitbox.net").
Similar Functions