RESOLVER(3) BSD Programmer's Manual RESOLVER(3) res_query,
res_search, res_mkquery, res_send, res_init, dn_comp, dn_expand
- resolver routines #include <sys/types.h> #include
<netinet/in.h> #include <arpa/nameser.h> #include <resolv.h> int
res_query(const char *dname, int class, int type, unsigned char
*answer, int anslen); int res_search(const char *dname, int
class, int type, unsigned char *answer, int anslen); int
res_mkquery(int op, const char *dname, int class, int type,
const unsigned char *data, int datalen, const unsigned char
*newrr, unsigned char *buf, int buflen); int res_send(const
unsigned char *msg, int msglen, unsigned char *answer, int
anslen); int res_init(void); int dn_comp(const char *exp_dn,
unsigned char *comp_dn, int length, unsigned char **dnptrs,
unsigned char **lastdnptr); int dn_expand(const unsigned char
*msg, const unsigned char *eomorig, const unsigned char
*comp_dn, char *exp_dn, int length); These routines are used for
making, sending, and interpreting query and reply messages w