ldns  1.7.0
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 
38 
48 
57 
66 ldns_rr_list *ldns_get_rr_list_hosts_frm_fp_l(FILE *fp, int *line_nr);
67 
76 
89 uint16_t ldns_getaddrinfo(ldns_resolver *res, const ldns_rdf *node, ldns_rr_class c, ldns_rr_list **list);
90 
97 bool ldns_nsec_type_check(const 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_struct_rr_list
List or Set of Resource Records.
Definition: rr.h:330
ldns_rr_class
enum ldns_enum_rr_class ldns_rr_class
Definition: rr.h:64
rdata.h
ldns_struct_rr
Resource Record.
Definition: rr.h:302
ldns_print_rr_rdf
void ldns_print_rr_rdf(FILE *fp, ldns_rr *r, int rdfnum,...)
Print a number of rdf's of the RR.
Definition: higher.c:328
ldns_get_rr_list_addr_by_name
ldns_rr_list * ldns_get_rr_list_addr_by_name(ldns_resolver *r, const 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
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
ldns_getaddrinfo
uint16_t ldns_getaddrinfo(ldns_resolver *res, const 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:268
host2str.h
host2str.h - txt presentation of RRs
ldns_rr_type
enum ldns_enum_rr_type ldns_rr_type
Definition: rr.h:239
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:247
tsig.h
ldns_get_rr_list_name_by_addr
ldns_rr_list * ldns_get_rr_list_name_by_addr(ldns_resolver *r, const 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_rdf
Resource record data field.
Definition: rdata.h:174
resolver.h
rr.h
ldns_nsec_type_check
signed char ldns_nsec_type_check(const ldns_rr *nsec, ldns_rr_type t)
Check if t is enumerated in the nsec type rdata.
Definition: higher.c:308
ldns_struct_resolver
DNS stub resolver structure.
Definition: resolver.h:59