gethostbyaddr, gethostbyname, gethostent - network host database functions
#include <netdb.h> struct hostent *gethostbyaddr(const void *addr, size_t len, int type); struct hostent *gethostbyname(const char *name); struct hostent *gethostent(void);
Refer to endhostent().