02.07.2013 Views

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

esolver(3N) resol ver(3N)<br />

NAME<br />

res mkquery, res send, res init, dn_comp,<br />

dn _expand - resolver routines -<br />

SYNOPSIS<br />

#include <br />

#include <br />

#include <br />

#include <br />

res mkquery (op, dname, class, type, data, datalen,<br />

- newrr, buf, bujlen)<br />

int op;<br />

char *dname;<br />

int class, type;<br />

char *data;<br />

int datalen;<br />

struct rree *newrr;<br />

char *bu/;<br />

int bujlen;<br />

res_send (msg, msglen, answer, anslen)<br />

char *msg;<br />

int msgleni<br />

char * answer i<br />

int ansleni<br />

res_init ()<br />

dn comp (exp dn, eomp dn, length, dnptrs, lastdnptr)<br />

char *exp dn, *eomp (in;<br />

int length; -<br />

char **dnptrs, **lastdnptri<br />

dn expand(msg, eomorig, eomp dn, exp dn, length)<br />

char *msg, *eomorig, *eomp dn, exp dn;<br />

int length; --<br />

DESCRIPTION<br />

These routines are used for making, sending, and interpreting<br />

packets to Internet domain name servers. Global information that<br />

is used by the resolver routines is kept in the variable res.<br />

Most of the values have reasonable defaults and can be ignored.<br />

Options stored in res. options are defined in resol v. hand<br />

are as follows. options are a simple bit mask.<br />

1<br />

February, 1990<br />

Revision C

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!