|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 188.8.131.52
hostname for IP address 184.108.40.206 is 220.127.116.11