Example.
Convert the IP address 18.159.0.42 into its domain name. To do this
we execute the following command:
<?echo gethostbyadrr("18.159.0.42")>
The result is:
And to convert from an address like www.yahoo.com to its
IP address we execute this command:
<?echo gethostbyname("www.yahoo.com")>
The result is: