ICI Modules: net: gethostbyaddr


Modules by name : by type

Synopsis

string = net.gethostbyaddr(string | int)

Description

Return the name of a host given an IP address. The IP address is specified as either a string containing an address in dotted decimal or an integer containing the IP address in host byte order (remember ICI ints are at least 32 bits so they can store a 32 bit IP address).

The name is returned as a string. If the name cannot be resolved an exception, "unknown host", is raised.