IP2NAME(2)
NAME
ip2name − translate an Internet address to a host Domain Name
SYNOPSIS
int ∗ip2name(ip, name)
IPaddr ip; char ∗name;
DESCRIPTION
Ip2name accepts a 4-byte Internet (IP) address and returns the Domain Name for that host by consulting a DARPA Domain nameserver to perform the translation. Argument ip gives the address of a 4-byte host Internet address to be translated into a name. Argument name points to an area of memory in which the domain name will be written. The name is written as a null−terminated byte string with periods separating domain name components.
Ip2name returns SYSERR if the Internet address is invalid, if the nameserver does not respond, or if the translation fails. It returns OK otherwise.
SEE ALSO
BUGS
There is no way to specify a long time delay, so name lookup that consults a distant nameserver may timeout due to network delays. Also, there is no way to specify a maximum name size.
December 01, 1986 — Xinu Programmer’s Manual