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

NAME

6       ldns_rr, ldns_rr_class, ldns_rr_type, ldns_rr_compress, ldns_rr_list
7
8

SYNOPSIS

10       #ifdef HAVE_STDINT_H
11       #include <stdint.h>
12       #endif /* HAVE_STDINT_H */
13
14       #ifdef HAVE_STDBOOL_H
15       #include <stdbool.h>
16       #endif /* HAVE_STDBOOL_H */
17
18       #include <ldns/ldns.h>
19

DESCRIPTION

21       ldns_rr
22              Resource Record type
23
24              This is the basic DNS element that contains actual data
25              struct ldns_struct_rr
26              {
27                   Owner name, uncompressed:
28                   ldns_rdf  *_owner;
29                   Time to live:
30                   uint32_t  _ttl;
31                   Number of data fields:
32                   size_t            _rd_count;
33                   the type of the RR. A, MX etc.:
34                   ldns_rr_type   _rr_type;
35                   Class of the resource record.:
36                   ldns_rr_class  _rr_class;
37                   /* everything in the rdata is in network order */
38                   The list of rdata's:
39                   ldns_rdf   **_rdata_fields;
40              };
41              typedef struct ldns_struct_rr ldns_rr;
42
43       ldns_rr_class
44              The different RR classes.
45              enum ldns_enum_rr_class
46              {
47                   the Internet:
48                   LDNS_RR_CLASS_IN    = 1,
49                   Chaos class:
50                   LDNS_RR_CLASS_CH    = 3,
51                   Hesiod (Dyer 87):
52                   LDNS_RR_CLASS_HS    = 4,
53                   Any class:
54                   LDNS_RR_CLASS_ANY   = 255,
55
56                   LDNS_RR_CLASS_FIRST     = 0,
57                   LDNS_RR_CLASS_LAST      = 65535,
58                   LDNS_RR_CLASS_COUNT          =     LDNS_RR_CLASS_LAST     -
59              LDNS_RR_CLASS_FIRST + 1
60              };
61              typedef enum ldns_enum_rr_class ldns_rr_class;
62
63       ldns_rr_type
64              The different RR types.
65              enum ldns_enum_rr_type
66              {
67                   a host address:
68                   LDNS_RR_TYPE_A = 1,
69                   an authoritative name server:
70                   LDNS_RR_TYPE_NS = 2,
71                   a mail destination (Obsolete - use MX):
72                   LDNS_RR_TYPE_MD = 3,
73                   a mail forwarder (Obsolete - use MX):
74                   LDNS_RR_TYPE_MF = 4,
75                   the canonical name for an alias:
76                   LDNS_RR_TYPE_CNAME = 5,
77                   marks the start of a zone of authority:
78                   LDNS_RR_TYPE_SOA = 6,
79                   a mailbox domain name (EXPERIMENTAL):
80                   LDNS_RR_TYPE_MB = 7,
81                   a mail group member (EXPERIMENTAL):
82                   LDNS_RR_TYPE_MG = 8,
83                   a mail rename domain name (EXPERIMENTAL):
84                   LDNS_RR_TYPE_MR = 9,
85                   a null RR (EXPERIMENTAL):
86                   LDNS_RR_TYPE_NULL = 10,
87                   a well known service description:
88                   LDNS_RR_TYPE_WKS = 11,
89                   a domain name pointer:
90                   LDNS_RR_TYPE_PTR = 12,
91                   host information:
92                   LDNS_RR_TYPE_HINFO = 13,
93                   mailbox or mail list information:
94                   LDNS_RR_TYPE_MINFO = 14,
95                   mail exchange:
96                   LDNS_RR_TYPE_MX = 15,
97                   text strings:
98                   LDNS_RR_TYPE_TXT = 16,
99                   RFC1183:
100                   LDNS_RR_TYPE_RP = 17,
101                   RFC1183:
102                   LDNS_RR_TYPE_AFSDB = 18,
103                   RFC1183:
104                   LDNS_RR_TYPE_X25 = 19,
105                   RFC1183:
106                   LDNS_RR_TYPE_ISDN = 20,
107                   RFC1183:
108                   LDNS_RR_TYPE_RT = 21,
109                   RFC1706:
110                   LDNS_RR_TYPE_NSAP = 22,
111                   RFC1348:
112                   LDNS_RR_TYPE_NSAP_PTR = 23,
113                   2535typecode:
114                   LDNS_RR_TYPE_SIG = 24,
115                   2535typecode:
116                   LDNS_RR_TYPE_KEY = 25,
117                   RFC2163:
118                   LDNS_RR_TYPE_PX = 26,
119                   RFC1712:
120                   LDNS_RR_TYPE_GPOS = 27,
121                   ipv6 address:
122                   LDNS_RR_TYPE_AAAA = 28,
123                   LOC record  RFC1876:
124                   LDNS_RR_TYPE_LOC = 29,
125                   2535typecode:
126                   LDNS_RR_TYPE_NXT = 30,
127                   draft-ietf-nimrod-dns-01.txt:
128                   LDNS_RR_TYPE_EID = 31,
129                   draft-ietf-nimrod-dns-01.txt:
130                   LDNS_RR_TYPE_NIMLOC = 32,
131                   SRV record RFC2782:
132                   LDNS_RR_TYPE_SRV = 33,
133                   http://www.jhsoft.com/rfc/af-saa-0069.000.rtf:
134                   LDNS_RR_TYPE_ATMA = 34,
135                   RFC2915:
136                   LDNS_RR_TYPE_NAPTR = 35,
137                   RFC2230:
138                   LDNS_RR_TYPE_KX = 36,
139                   RFC2538:
140                   LDNS_RR_TYPE_CERT = 37,
141                   RFC2874:
142                   LDNS_RR_TYPE_A6 = 38,
143                   RFC2672:
144                   LDNS_RR_TYPE_DNAME = 39,
145                   dnsind-kitchen-sink-02.txt:
146                   LDNS_RR_TYPE_SINK = 40,
147                   Pseudo OPT record...:
148                   LDNS_RR_TYPE_OPT = 41,
149                   RFC3123:
150                   LDNS_RR_TYPE_APL = 42,
151                   draft-ietf-dnsext-delegation:
152                   LDNS_RR_TYPE_DS = 43,
153                   SSH Key Fingerprint:
154                   LDNS_RR_TYPE_SSHFP = 44,
155                   draft-richardson-ipseckey-rr-11.txt:
156                   LDNS_RR_TYPE_IPSECKEY = 45,
157                   draft-ietf-dnsext-dnssec-25:
158                   LDNS_RR_TYPE_RRSIG = 46,
159                   LDNS_RR_TYPE_NSEC = 47,
160                   LDNS_RR_TYPE_DNSKEY = 48,
161
162                   LDNS_RR_TYPE_UINFO = 100,
163                   LDNS_RR_TYPE_UID = 101,
164                   LDNS_RR_TYPE_GID = 102,
165                   LDNS_RR_TYPE_UNSPEC = 103,
166
167                   LDNS_RR_TYPE_TSIG = 250,
168                   LDNS_RR_TYPE_IXFR = 251,
169                   LDNS_RR_TYPE_AXFR = 252,
170                   A request for mailbox-related records (MB, MG or MR):
171                   LDNS_RR_TYPE_MAILB = 253,
172                   A request for mail agent RRs (Obsolete - see MX):
173                   LDNS_RR_TYPE_MAILA = 254,
174                   any type (wildcard):
175                   LDNS_RR_TYPE_ANY = 255,
176
177                   LDNS_RR_TYPE_FIRST = 0,
178                   LDNS_RR_TYPE_LAST  = 65535,
179                   LDNS_RR_TYPE_COUNT = LDNS_RR_TYPE_LAST - LDNS_RR_TYPE_FIRST
180              + 1
181              };
182              typedef enum ldns_enum_rr_type ldns_rr_type;
183
184       ldns_rr_compress
185              Used to specify whether compression is allowed.
186              enum ldns_enum_rr_compress
187              {
188                   compression is allowed:
189                   LDNS_RR_COMPRESS,
190                   LDNS_RR_NO_COMPRESS
191              };
192              typedef enum ldns_enum_rr_compress ldns_rr_compress;
193
194       ldns_rr_list
195              Resource Record Set
196
197              Contains a list of rr's <br>
198              No official RFC-like checks are made
199              struct ldns_struct_rr_list
200              {
201                   size_t _rr_count;
202                   ldns_rr **_rrs;
203              };
204              typedef struct ldns_struct_rr_list ldns_rr_list;
205

AUTHOR

207       The  ldns team at NLnet Labs. Which consists out of: Jelte Jansen, Erik
208       Rozendaal and Miek Gieben.
209
210

REPORTING BUGS

212       Please report bugs to ldns-team@nlnetlabs.nl  or  in  our  Bugzilla  at
213       http://www.nlnetlabs.nl/bugs/index.html
214
215       Be sure to select ldns as the product.
216
217
219       Copyright  (c)  2004, 2005 NLnet Labs.  Licensed under the BSD License.
220       There is NO warranty; not even for MERCHANTABILITY  or  FITNESS  FOR  A
221       PARTICULAR PURPOSE.
222
223

SEE ALSO

225       ldns_rr_new,    ldns_rr_set_owner,    ldns_rr_push_rdf,    ldns_rr_rdf,
226       ldns_rr_list_rr_count,       ldns_rr_list_new,        ldns_rr_list_cat,
227       ldns_is_rrset,      ldns_rr_set_push_rr,     ldns_get_rr_class_by_name,
228       ldns_rr_list_clone, ldns_rr_list_sort, ldns_rr_compare,  ldns_rr_uncom‐
229       pressed_size,  ldns_rr2canonical, ldns_rr_label_count, ldns_rr_descrip‐
230       tor.  And perldoc Net::DNS, RFC1043,  RFC1035,  RFC4033,  RFC4034   and
231       RFC4035.
232

REMARKS

234       This manpage was automaticly generated from the ldns source code by use
235       of Doxygen and some perl.
236
237
238
239                                                             ldns(25 Apr 2005)
Impressum