|Liam Delahunty: Home||Tips||Web||Contact|
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('www.corx.net'), and then the returned IP address to gethostbyaddr.
IP address for www.corx.net is 18.104.22.168
hostname for IP address 22.214.171.124 is 126.96.36.199