lwres_getrrsetbyname.html revision 2cd182921e1b04ccda0a56995c4cc491c882af04
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont - Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User - Copyright (C) 2001 Internet Software Consortium.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - Permission to use, copy, modify, and distribute this software for any
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - purpose with or without fee is hereby granted, provided that the above
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User - copyright notice and this permission notice appear in all copies.
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User - PERFORMANCE OF THIS SOFTWARE.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User<!-- $Id: lwres_getrrsetbyname.html,v 1.9 2004/08/23 00:05:48 marka Exp $ -->
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>lwres_getrrsetbyname</TITLE
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserNAME="GENERATOR"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCONTENT="Modular DocBook HTML Stylesheet Version 1.7"></HEAD
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="REFENTRY"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserBGCOLOR="#FFFFFF"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserTEXT="#000000"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserLINK="#0000FF"
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis DupontVLINK="#840084"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserALINK="#0000FF"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>lwres_getrrsetbyname</H1
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="REFNAMEDIV"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>lwres_getrrsetbyname, lwres_freerrset -- retrieve DNS records</DIV
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox UserCLASS="REFSYNOPSISDIV"
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis DupontCLASS="FUNCSYNOPSIS"
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis DupontCLASS="FUNCSYNOPSISINFO"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="FUNCDEF"
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupontlwres_getrrsetbyname</CODE
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>(const char *hostname, unsigned int rdclass, unsigned int rdtype, unsigned int flags, struct rrsetinfo **res);</CODE
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="FUNCDEF"
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupontlwres_freerrset</CODE
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>(struct rrsetinfo *rrset);</CODE
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont>The following structures are used:
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="PROGRAMLISTING"
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont>struct rdatainfo {
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User unsigned int rdi_length; /* length of data */
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User unsigned char *rdi_data; /* record data */
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userstruct rrsetinfo {
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont unsigned int rri_flags; /* RRSET_VALIDATED... */
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User unsigned int rri_rdclass; /* class number */
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User unsigned int rri_rdtype; /* RR type number */
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont unsigned int rri_ttl; /* time to live */
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User unsigned int rri_nrdatas; /* size of rdatas array */
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User unsigned int rri_nsigs; /* size of sigs array */
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont char *rri_name; /* canonical name */
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User struct rdatainfo *rri_rdatas; /* individual records */
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User struct rdatainfo *rri_sigs; /* individual signatures */
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="REFSECT1"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>DESCRIPTION</H2
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCLASS="FUNCTION"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>lwres_getrrsetbyname()</CODE
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Usergets a set of resource records associated with a
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis DupontCLASS="PARAMETER"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User>hostname</VAR