ldns documentation

- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

ldns.h
Go to the documentation of this file.
1 /*
2 * dns.h -- defines for the Domain Name System
3 *
4 * Copyright (c) 2005-2008, NLnet Labs. All rights reserved.
5 *
6 * See LICENSE for the license.
7 *
8 * This library was created by:
9 * Jelte Jansen, Erik Rozendaal and Miek Gieben
10 *
11 * A bunch of defines that are used in the DNS.
12 */
13
14
89 #ifndef LDNS_DNS_H
90 #define LDNS_DNS_H
91
92 #include <stdio.h>
93 #include <stdlib.h>
94
95 #include <ldns/util.h>
96 #include <ldns/buffer.h>
97 #include <ldns/common.h>
98 #include <ldns/dane.h>
99 #include <ldns/dname.h>
100 #include <ldns/dnssec.h>
101 #include <ldns/dnssec_verify.h>
102 #include <ldns/dnssec_sign.h>
103 #include <ldns/duration.h>
104 #include <ldns/error.h>
105 #include <ldns/higher.h>
106 #include <ldns/host2str.h>
107 #include <ldns/host2wire.h>
108 #include <ldns/net.h>
109 #include <ldns/packet.h>
110 #include <ldns/rdata.h>
111 #include <ldns/resolver.h>
112 #include <ldns/rr.h>
113 #include <ldns/str2host.h>
114 #include <ldns/tsig.h>
115 #include <ldns/update.h>
116 #include <ldns/wire2host.h>
117 #include <ldns/rr_functions.h>
118 #include <ldns/keys.h>
119 #include <ldns/parse.h>
120 #include <ldns/zone.h>
121 #include <ldns/dnssec_zone.h>
122 #include <ldns/radix.h>
123 #include <ldns/rbtree.h>
124 #include <ldns/sha1.h>
125 #include <ldns/sha2.h>
126
127 #ifdef __cplusplus
128 extern "C" {
129 #endif
130
131 #define LDNS_IP4ADDRLEN (32/8)
132 #define LDNS_IP6ADDRLEN (128/8)
133 #define LDNS_PORT 53
134 #define LDNS_ROOT_LABEL_STR "."
135 #define LDNS_DEFAULT_TTL 3600
136
137 /* lookup tables for standard DNS stuff */
138
140 extern ldns_lookup_table ldns_certificate_types[];
142 extern ldns_lookup_table ldns_algorithms[];
144 extern ldns_lookup_table ldns_cert_algorithms[];
146 extern ldns_lookup_table ldns_rr_classes[];
148 extern ldns_lookup_table ldns_rcodes[];
150 extern ldns_lookup_table ldns_opcodes[];
152 extern ldns_lookup_table ldns_edns_flags[];
153
154 #ifdef __cplusplus
155 }
156 #endif
157
158 #endif /* LDNS_DNS_H */
net.h
Contains functions to send and receive packets over a network.
rdata.h
Defines ldns_rdf and functions to manipulate those.
parse.h
Contains some low-level parsing functions, mostly used in the _frm_str family of functions.
tsig.h
Defines functions for TSIG usage.
str2host.h
str2host.h - conversion from str to the host fmt
dnssec_sign.h
rbtree.h
Red black tree.
dnssec_zone.h
ldns_cert_algorithms
ldns_lookup_table ldns_cert_algorithms[]
Taken from RFC 2538.
Definition: host2str.c:67
rr.h
Contains the definition of ldns_rr and functions to manipulate those.
dnssec_verify.h
ldns_opcodes
ldns_lookup_table ldns_opcodes[]
Operation codes.
Definition: host2str.c:107
dane.h
This module contains base functions for creating and verifying TLSA RR&#39;s with PKIX certificates...
ldns_algorithms
ldns_lookup_table ldns_algorithms[]
Taken from RFC 2535, section 7.
Definition: host2str.c:41
error.h
Defines error numbers and functions to translate those to a readable string.
sha2.h
resolver.h
Defines the ldns_resolver structure, a stub resolver that can send queries and parse answers...
host2str.h
host2str.h - txt presentation of RRs
util.h
ldns_rr_classes
ldns_lookup_table ldns_rr_classes[]
rr types
Definition: host2str.c:82
host2wire.h
Contains all functions to translate the main structures to wire format.
ldns_rcodes
ldns_lookup_table ldns_rcodes[]
Response codes.
Definition: host2str.c:92
duration.h
zone.h
zone.h
dname.h
dname contains function to read and manipulate domain names.
dnssec.h
This module contains base functions for DNSSEC operations (RFC4033 t/m RFC4035).
ldns_struct_lookup_table
A general purpose lookup table.
Definition: util.h:156
buffer.h
This file contains the definition of ldns_buffer, and functions to manipulate those.
sha1.h
keys.h
Addendum to dnssec.h, this module contains key and algorithm definitions and functions.
packet.h
Contains the definition of ldns_pkt and its parts, as well as functions to manipulate those...
common.h
Common definitions for LDNS.
rr_functions.h
Defines some extra convenience functions for ldns_rr structures.
higher.h
Specifies some higher level functions that could be useful for certain applications.
radix.h
Radix tree.
ldns_certificate_types
ldns_lookup_table ldns_certificate_types[]
Taken from RFC 2538, section 2.1.
wire2host.h
Contains functions that translate dns data from the wire format (as sent by servers and clients) to t...
update.h
Defines functions to perform UPDATE queries.
ldns_edns_flags
ldns_lookup_table ldns_edns_flags[]
EDNS flags.
Definition: packet.c:32