1resolve(3z) z88dk Programmer's Manual resolve(3z)
2
3
4
6 resolve - convert hostname to IP address
7
9 #include <net/resolv.h>
10
11 ipaddr_t resolve(char *name);
12
14 The resolve() function queries any configured nameservers for the IP
15 address of the host with the name name.
16
17 If name is in the form a.b.c.d then this is converted to an IP address
18 and returned.
19
20
22 resolv() returns the network order IP address of the requested host. If
23 the name cannot be resolved then NULL is returned.
24
25 resolv() may also be called by the macro gethostbyname
26
27
29 If you use the macro gethostbyname then beware that the ZSock implemenā
30 tation is not at all standard.
31
32
34 Dominic Morris <dom@jb.man.ac.uk>
35
36
37
38 18 February 2000 resolve(3z)