Socket.hostByName()
syntax: |
Socket.hostByName(name) |
where: |
name - Name of host to look up
|
return: |
string - The name of the specified host
|
description: |
This method looks up the specified host through a DNS lookup and returns it. This method can be used to convert between numerical addresses and domain names, as well as resolving local names appropriately. If unable to find the host name, then null is returned.
|
see: |
#link <sesock>, Socket.addressByName()
|
example: |
var hostname = Socket.hostByName("44.55.66.77"); |