|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 22.214.171.124
hostname for IP address 126.96.36.199 is web1uk.onlinesales.co.uk