and gethostbyname are in. On some systems, you need -lsocket and -lnsl for these (solaris). Tested on NetBSD and Solaris-9.