ldns documentation

- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

higher.h
Go to the documentation of this file.
1
8 /*
9 * a Net::DNS like library for C
10 *
11 * (c) NLnet Labs, 2005-2006
12 *
13 * See the file LICENSE for the license
14 */
15
16 #ifndef LDNS_HIGHER_H
17 #define LDNS_HIGHER_H
18
19 #include <ldns/resolver.h>
20 #include <ldns/rdata.h>
21 #include <ldns/rr.h>
22 #include <ldns/host2str.h>
23 #include <ldns/tsig.h>
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
37 ldns_rr_list *ldns_get_rr_list_addr_by_name(ldns_resolver *r, ldns_rdf *name, ldns_rr_class c, uint16_t flags);
38
47 ldns_rr_list *ldns_get_rr_list_name_by_addr(ldns_resolver *r, ldns_rdf *addr, ldns_rr_class c, uint16_t flags);
48
56 ldns_rr_list *ldns_get_rr_list_hosts_frm_fp(FILE *fp);
57
66 ldns_rr_list *ldns_get_rr_list_hosts_frm_fp_l(FILE *fp, int *line_nr);
67
75 ldns_rr_list *ldns_get_rr_list_hosts_frm_file(char *filename);
76
89 uint16_t ldns_getaddrinfo(ldns_resolver *res, ldns_rdf *node, ldns_rr_class c, ldns_rr_list **list);
90
97 bool ldns_nsec_type_check(ldns_rr *nsec, ldns_rr_type t);
98
107 void ldns_print_rr_rdf(FILE *fp, ldns_rr *r, int rdfnum, ...);
108
109 #ifdef __cplusplus
110 }
111 #endif
112
113 #endif /* LDNS_HIGHER_H */
ldns_nsec_type_check
signed char ldns_nsec_type_check(ldns_rr *nsec, ldns_rr_type t)
Check if t is enumerated in the nsec type rdata.
Definition: higher.c:305
ldns_struct_resolver
DNS stub resolver structure.
Definition: resolver.h:59
rdata.h
Defines ldns_rdf and functions to manipulate those.
ldns_rr_class
enum ldns_enum_rr_class ldns_rr_class
Definition: rr.h:64
ldns_struct_rr_list
List or Set of Resource Records.
Definition: rr.h:327
tsig.h
Defines functions for TSIG usage.
ldns_get_rr_list_hosts_frm_file
ldns_rr_list * ldns_get_rr_list_hosts_frm_file(char *filename)
wade through fp (a /etc/hosts like file) and return a rr_list containing all the defined hosts in the...
Definition: higher.c:244
rr.h
Contains the definition of ldns_rr and functions to manipulate those.
ldns_get_rr_list_name_by_addr
ldns_rr_list * ldns_get_rr_list_name_by_addr(ldns_resolver *r, ldns_rdf *addr, ldns_rr_class c, uint16_t flags)
ask the resolver about the address and return the name
Definition: higher.c:107
ldns_struct_rr
Resource Record.
Definition: rr.h:299
ldns_print_rr_rdf
void ldns_print_rr_rdf(FILE *fp, ldns_rr *r, int rdfnum,...)
Print a number of rdf&#39;s of the RR.
Definition: higher.c:325
ldns_get_rr_list_hosts_frm_fp_l
ldns_rr_list * ldns_get_rr_list_hosts_frm_fp_l(FILE *fp, int *line_nr)
wade through fp (a /etc/hosts like file) and return a rr_list containing all the defined hosts in the...
Definition: higher.c:147
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
ldns_getaddrinfo
uint16_t ldns_getaddrinfo(ldns_resolver *res, ldns_rdf *node, ldns_rr_class c, ldns_rr_list **list)
This function is a wrapper function for ldns_get_rr_list_name_by_addr and ldns_get_rr_list_addr_by_na...
Definition: higher.c:265
ldns_struct_rdf
Resource record data field.
Definition: rdata.h:166
ldns_rr_type
enum ldns_enum_rr_type ldns_rr_type
Definition: rr.h:236
ldns_get_rr_list_addr_by_name
ldns_rr_list * ldns_get_rr_list_addr_by_name(ldns_resolver *r, ldns_rdf *name, ldns_rr_class c, uint16_t flags)
Ask the resolver about name and return all address records.
Definition: higher.c:24
ldns_get_rr_list_hosts_frm_fp
ldns_rr_list * ldns_get_rr_list_hosts_frm_fp(FILE *fp)
wade through fp (a /etc/hosts like file) and return a rr_list containing all the defined hosts in the...
Definition: higher.c:141