1reverse_addr(3z)           z88dk Programmer's Manual          reverse_addr(3z)
2
3
4

NAME

6       reverse_addr_lookup - convert IP address to hstname
7

SYNOPSIS

9       #include <net/resolv.h>
10
11       bool_t reverse_addr_lookup(ipaddr_t ipaddr, char *name);
12

DESCRIPTION

14       The  reverse_addr_lookup()  function queries any configured nameservers
15       for the name of the host with IP address ipaddr.
16
17       If ipaddr is not known to the queried nameservers then  the  ipaddr  is
18       converted to the form a.b.c.d and returned.
19
20

RETURN VALUE

22       reverse_addr_lookup()  places  the  hostname in the buffer specified by
23       name, no checks are made that this buffer is large enough to  hold  the
24       full  hostname. The function returns TRUE or FALSE depending on whether
25       the queried nameservers knew ipaddr.
26
27       reverse_addr_lookup() may also be called by the macro gethostbyaddr
28
29

BUGS

31       If you use the macro gethostbyaddr then beware that the ZSock implemenā€
32       tation is not at all standard.
33
34

AUTHOR

36       Dominic Morris <dom@jb.man.ac.uk>
37
38
39
40                               18 February 2000               reverse_addr(3z)
Impressum