The res_querydomain() call queries the concatenation of name and domain.
Syntax
#include <sys\types.h> #include <netinet\in.h> #include <arpa\nameser.h> #include <resolv.h> int res_querydomain(name, domain class, type, answer, anslen) char *name; char *domain; int class; int type; u_char *answer; int anslen;
Parameters
domain
C_IN
T_A
Description
The res_querydomain() call concatenates name and domain, removing a trailing dot from name if domain is null. The res_querydomain() call then calls res_query() to build and perform the query.
Return Values
The value 0 indicates success; the value -1 indicates an error. The h_errno() value is set to the appropriate error code.
Related Calls
dn_comp() dn_expand()
dn_find()
dn_skipname()
putlong()
putshort()
res_init()
res_mkquery()
res_search()
res_send()