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