The dn_find() call searches for an expanded name from a list of previously compressed names.
Syntax
#include <types.h> #include <netinet\in.h> #include <arpa\nameser.h> #include <resolv.h> int dn_find(exp_dn, msg, dnptrs, lastdnptr) u_char *exp_dn; u_char *msg; u_char **dnptrs; u_char **lastdnptr;
Parameters
exp_dn
Description
The dn_find() call is one of a group of calls that form the resolver. The resolver is a set of functions that perform a translation between domain names and network addresses. Global information used by the resolver calls resides in the _res data structure. The <RESOLV.H> file contains the _res data structure definition. (See The _res Data Structure for more on the _res data structure.)
Return Values
When successful, the dn_find() call returns the offset from msg. When unsuccessful, the call returns a value of -1.
Related Calls
dn_comp() dn_expand()
dn_skipname()
putlong()
putshort()
res_init()
res_mkquery()
res_query()
res_search()
res_send()