res_query()

The res_query() call provides an interface to the server query mechanism.

Syntax

#include <sys\types.h>
#include <netinet\in.h>
#include <arpa\nameser.h>
#include <resolv.h>
int res_query(name, class, type, answer, anslen)
char *name;
int class;
int type;
u_char *answer;
int anslen;

Parameters

name

class