#include <sys/types.h> #include <netinet/in.h> #include <arpa/nameser.h> #include <resolv.h> int res_nmkquery(state* res, int operation, const char *domain_name, int class, int type, const unsigned char *search_data, int search_data_length, const unsigned char *reserved, unsigned char *query_buffer, int query_buffer_length)
The res_nmkquery() function is similar to res_mkquery() but it uses a user-declared res pointer instead of the shared _res.
For a description of this function and more information on the parameters, authorities required, return values, error conditions, error messages, usage notes, and related information, see res_mkquery()--Place Domain Query in Buffer.
Top | UNIX-Type APIs | APIs by category |