1ldns(25 Apr 2005)                                            ldns(25 Apr 2005)
2
3
4

NAME

6       ldns_rr_new,         ldns_rr_new_frm_type,         ldns_rr_new_frm_str,
7       ldns_rr_new_frm_fp, ldns_rr_free, ldns_rr_print
8
9

SYNOPSIS

11       #ifdef HAVE_STDINT_H
12       #include <stdint.h>
13       #endif /* HAVE_STDINT_H */
14
15       #ifdef HAVE_STDBOOL_H
16       #include <stdbool.h>
17       #endif /* HAVE_STDBOOL_H */
18
19       #include <ldns/ldns.h>
20
21       ldns_rr* ldns_rr_new(void);
22
23       ldns_rr* ldns_rr_new_frm_type(ldns_rr_type t);
24
25       ldns_rr* ldns_rr_new_frm_str(const  char  *str,  uint16_t  default_ttl,
26       ldns_rdf *origin);
27
28       ldns_rr*  ldns_rr_new_frm_fp(FILE  *fp, uint16_t *default_ttl, ldns_rdf
29       **origin);
30
31       void ldns_rr_free(ldns_rr *rr);
32
33       void ldns_rr_print(FILE *output, ldns_rr *rr);
34

DESCRIPTION

36       ldns_rr_new() creates a new rr structure.
37              Returns ldns_rr *
38
39       ldns_rr_new_frm_type() creates a new rr structure, based on  the  given
40              type.  alloc enough space to hold all the rdf's
41
42       ldns_rr_new_frm_str()  creates  an rr from a string.  The string should
43              be a  fully  filled-in  rr,  like  ownername  &lt;space&gt;  TTL
44              &lt;space&gt; CLASS &lt;space&gt; TYPE &lt;space&gt; RDATA.
45              str: the string to convert
46              default_ttl:  pointer  to a default ttl for the rr. If 0 DEF_TTL
47              will be used
48              origin: when the owner is relative add this
49              Returns the new rr
50
51       ldns_rr_new_frm_fp() creates a new rr from a file containing a string.
52              fp: the file pointer to use
53              default_ttl: pointer to a  default  ttl  for  the  rr.  If  NULL
54              DEF_TTL  will  be  used  the pointer will be updated if the file
55              contains a $TTL directive
56              origin: when the owner is relative add this the pointer will  be
57              updated if the file contains a $ORIGIN directive
58              Returns ldns_rr*
59
60       ldns_rr_free() frees an RR structure
61              *rr: the RR to be freed
62              Returns void
63
64       ldns_rr_print()  Prints  the  data  in the resource record to the given
65              file stream (in presentation format)
66
67              output: the file stream to print to
68              rr: the resource record to print
69              Returns void
70

AUTHOR

72       The ldns team at NLnet Labs. Which consists out of: Jelte Jansen,  Erik
73       Rozendaal and Miek Gieben.
74
75

REPORTING BUGS

77       Please  report  bugs  to  ldns-team@nlnetlabs.nl  or in our Bugzilla at
78       http://www.nlnetlabs.nl/bugs/index.html
79
80       Be sure to select ldns as the product.
81
82
84       Copyright (c) 2004, 2005 NLnet Labs.  Licensed under the  BSD  License.
85       There  is  NO  warranty;  not even for MERCHANTABILITY or FITNESS FOR A
86       PARTICULAR PURPOSE.
87
88

SEE ALSO

90       ldns_rr,  ldns_rr_list.   And  perldoc  Net::DNS,   RFC1043,   RFC1035,
91       RFC4033, RFC4034  and RFC4035.
92

REMARKS

94       This manpage was automaticly generated from the ldns source code by use
95       of Doxygen and some perl.
96
97
98
99                                                             ldns(25 Apr 2005)
Impressum