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
26extern "C" {
27#endif
28
38
48
57
66ldns_rr_list *ldns_get_rr_list_hosts_frm_fp_l(FILE *fp, int *line_nr);
67
76
89uint16_t ldns_getaddrinfo(ldns_resolver *res, const ldns_rdf *node, ldns_rr_class c, ldns_rr_list **list);
90
97bool ldns_nsec_type_check(const ldns_rr *nsec, ldns_rr_type t);
98
107void 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_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_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
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_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
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_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
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
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
host2str.h - txt presentation of RRs
Defines ldns_rdf and functions to manipulate those.
Defines the ldns_resolver structure, a stub resolver that can send queries and parse answers.
Contains the definition of ldns_rr and functions to manipulate those.
enum ldns_enum_rr_type ldns_rr_type
Definition rr.h:251
enum ldns_enum_rr_class ldns_rr_class
Definition rr.h:61
Resource record data field.
Definition rdata.h:197
DNS stub resolver structure.
Definition resolver.h:60
List or Set of Resource Records.
Definition rr.h:346
Resource Record.
Definition rr.h:318
Defines functions for TSIG usage.