ldns.h
Go to the documentation of this file.
/*
* dns.h -- defines for the Domain Name System
*
* Copyright (c) 2005-2008, NLnet Labs. All rights reserved.
*
* See LICENSE for the license.
*
* This library was created by:
* Jelte Jansen, Erik Rozendaal and Miek Gieben
*
* A bunch of defines that are used in the DNS.
*/
#ifndef LDNS_DNS_H
#define LDNS_DNS_H
#include <stdio.h>
#include <stdlib.h>
#include <ldns/util.h>
#include <ldns/buffer.h>
#include <ldns/common.h>
#include <ldns/dane.h>
#include <ldns/dname.h>
#include <ldns/dnssec.h>
#include <ldns/dnssec_verify.h>
#include <ldns/dnssec_sign.h>
#include <ldns/duration.h>
#include <ldns/edns.h>
#include <ldns/error.h>
#include <ldns/higher.h>
#include <ldns/host2str.h>
#include <ldns/host2wire.h>
#include <ldns/net.h>
#include <ldns/packet.h>
#include <ldns/rdata.h>
#include <ldns/resolver.h>
#include <ldns/rr.h>
#include <ldns/str2host.h>
#include <ldns/tsig.h>
#include <ldns/update.h>
#include <ldns/wire2host.h>
#include <ldns/rr_functions.h>
#include <ldns/keys.h>
#include <ldns/parse.h>
#include <ldns/zone.h>
#include <ldns/dnssec_zone.h>
#include <ldns/radix.h>
#include <ldns/rbtree.h>
#include <ldns/sha1.h>
#include <ldns/sha2.h>
#ifdef __cplusplus
extern "C" {
#endif
#define LDNS_IP4ADDRLEN (32/8)
#define LDNS_IP6ADDRLEN (128/8)
#define LDNS_PORT 53
#define LDNS_ROOT_LABEL_STR "."
#define LDNS_DEFAULT_TTL 3600
/* lookup tables for standard DNS stuff */
extern ldns_lookup_table ldns_certificate_types[];
extern ldns_lookup_table ldns_algorithms[];
extern ldns_lookup_table ldns_cert_algorithms[];
extern ldns_lookup_table ldns_rr_classes[];
extern ldns_lookup_table ldns_rcodes[];
extern ldns_lookup_table ldns_opcodes[];
extern ldns_lookup_table ldns_edns_flags[];
#ifdef __cplusplus
}
#endif
#endif /* LDNS_DNS_H */
buffer.h
This file contains the definition of ldns_buffer, and functions to manipulate those.
common.h
Common definitions for LDNS.
dane.h
This module contains base functions for creating and verifying TLSA RR's with PKIX certificates,...
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).
dnssec_sign.h
dnssec_verify.h
dnssec_zone.h
duration.h
edns.h
error.h
Defines error numbers and functions to translate those to a readable string.
higher.h
Specifies some higher level functions that could be useful for certain applications.
host2str.h
host2str.h - txt presentation of RRs
host2wire.h
Contains all functions to translate the main structures to wire format.
keys.h
Addendum to dnssec.h, this module contains key and algorithm definitions and functions.
ldns_rcodes
ldns_lookup_table ldns_rcodes[]
Response codes.
Definition host2str.c:109
ldns_algorithms
ldns_lookup_table ldns_algorithms[]
Taken from RFC 2535, section 7.
Definition host2str.c:53
ldns_certificate_types
ldns_lookup_table ldns_certificate_types[]
Taken from RFC 2538, section 2.1.
ldns_opcodes
ldns_lookup_table ldns_opcodes[]
Operation codes.
Definition host2str.c:124
ldns_rr_classes
ldns_lookup_table ldns_rr_classes[]
rr types
Definition host2str.c:99
ldns_edns_flags
ldns_lookup_table ldns_edns_flags[]
EDNS flags.
Definition packet.c:33
ldns_cert_algorithms
ldns_lookup_table ldns_cert_algorithms[]
Taken from RFC 2538.
Definition host2str.c:84
net.h
Contains functions to send and receive packets over a network.
packet.h
Contains the definition of ldns_pkt and its parts, as well as functions to manipulate those.
parse.h
Contains some low-level parsing functions, mostly used in the _frm_str family of functions.
radix.h
Radix tree.
rbtree.h
Red black tree.
rdata.h
Defines ldns_rdf and functions to manipulate those.
resolver.h
Defines the ldns_resolver structure, a stub resolver that can send queries and parse answers.
rr.h
Contains the definition of ldns_rr and functions to manipulate those.
rr_functions.h
Defines some extra convenience functions for ldns_rr structures.
sha1.h
sha2.h
str2host.h
str2host.h - conversion from str to the host fmt
ldns_struct_lookup_table
A general purpose lookup table.
Definition util.h:156
tsig.h
Defines functions for TSIG usage.
update.h
Defines functions to perform UPDATE queries.
util.h
wire2host.h
Contains functions that translate dns data from the wire format (as sent by servers and clients) to t...
zone.h
zone.h