#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
void res_nquerydomain(state* res,
const char *string1,
const char *string2,
int class,
int type,
unsigned char *answer_buffer,
int answer_buffer_length)
The res_nquerydomain() concatenates string1 + string2 into a new domain_name parameter and calls res_nquery(). For more information on domain_name, the remaining parameters, authorities required, return values, and related information, see res_nquery()--Send Domain Query.
See Code disclaimer information for information pertaining to code examples.
See res_ninit() for an example of how hstrerror() is used.
| Top | UNIX-Type APIs | APIs by category |