*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> res_isourserver (3c)              
Title
Content
Arch
Section
 

Contents


RES_ISOURSERVER(3C)					   RES_ISOURSERVER(3C)


NAME    [Toc]    [Back]

     res_isourserver, res_nameinquery, res_queriesmatch, res_querydomain,
     res_randomid - resolver query utilities

SYNOPSIS    [Toc]    [Back]

     #include <resolv.h>

     int res_isourserver(struct	sockaddr_in *inp);

     int res_nameinquery(char *name, int type, int class, u_char *buf, u_char *eom);

     int res_queriesmatch(u_char *buf1,	u_char *eom1, u_char *buf2, u_char *eom2);

     int res_querydomain(char *name, char *domain, int class, int type,	u_char *answer,	int anslen);

     u_int16_t res_randomid(void);

DESCRIPTION    [Toc]    [Back]

     Helper functions for resolver code	development.

     res_isourserver returns 1 if argument appears in current list of the
     clients name servers, returns 0 if	not.  res_nameinquery looks for	(name,
     type, class) in the query section of packet (buf, eom).  Returns: -1
     format error, 0 not found,	or >0 found.

     res_queriesmatch looks for	a 1:1 mapping of (name,	type, class) in
     packets (buf1, eom1) and (buf2, eom2).  Returns: -1 format	error, 0 not a
     1:1 mapping, and >0 is a 1:1 mapping.  res_querydomain performs a call to
     res_query (see res_query(3) ) on the concatenation	of name	and domain.

     res_randomid is a pseudo-random number generator.

SEE ALSO    [Toc]    [Back]

      
      
     resolver(4).


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
dnsquery FreeBSD query domain name servers using resolver
dn_expand FreeBSD resolver routines
dn_expand NetBSD resolver routines
res_init NetBSD resolver routines
resolver FreeBSD resolver routines
res_send NetBSD resolver routines
res_query NetBSD resolver routines
res_search NetBSD resolver routines
res_mkquery NetBSD resolver routines
dn_comp NetBSD resolver routines
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service