Liam Delahunty: Home Tips Web Contact
Recommended laptop
under £500

Think I deserve a present? See my Amazon Wish List

gethostbyname & gethostbyaddr

Given a hostname on a shared server the gethostbyaddr will obviously return the 'master' hostname. Here I pass gethostbyname(''), and then the returned IP address to gethostbyaddr.

$ip = gethostbyname('');

IP address for is

$hostname = gethostbyaddr(;

hostname for IP address is

See also PHP checkdnsrr and PHP gethostbyname & gethostbyaddr - Googlebot check.

Share this!  

Php Design Random Image Generator | Php Gethostbyaddr | Php Gethostbyaddr Googlebot


  Tips | Home | Search | Contact

Link here: