1ldns(3)                    Library Functions Manual                    ldns(3)
2
3
4

NAME

6       ldns_get_rr_list_hosts_frm_file, ldns_get_rr_list_hosts_frm_fp,
7       ldns_get_rr_list_hosts_frm_fp_l - parse /etc/hosts file
8
9

SYNOPSIS

11       #include <stdint.h>
12       #include <stdbool.h>
13
14       #include <ldns/ldns.h>
15
16       ldns_rr_list* ldns_get_rr_list_hosts_frm_file(char *filename);
17
18       ldns_rr_list* ldns_get_rr_list_hosts_frm_fp(FILE *fp);
19
20       ldns_rr_list* ldns_get_rr_list_hosts_frm_fp_l(FILE *fp, int *line_nr);
21

DESCRIPTION

23       ldns_get_rr_list_hosts_frm_file() wade through fp (a /etc/hosts like
24              file) and return a rr_list containing all the defined hosts in
25              there
26              filename: the filename to use (NULL for /etc/hosts)
27              Returns ldns_rr_list * with the names
28
29       ldns_get_rr_list_hosts_frm_fp() wade through fp (a /etc/hosts like
30              file) and return a rr_list containing all the defined hosts in
31              there
32              fp: the file pointer to use
33              Returns ldns_rr_list * with the names
34
35       ldns_get_rr_list_hosts_frm_fp_l() wade through fp (a /etc/hosts like
36              file) and return a rr_list containing all the defined hosts in
37              there
38              fp: the file pointer to use
39              line_nr: pointer to an integer containing the current line num‐
40              ber (for debugging purposes)
41              Returns ldns_rr_list * with the names
42

AUTHOR

44       The ldns team at NLnet Labs.
45
46

REPORTING BUGS

48       Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
49       http://www.nlnetlabs.nl/bugs/index.html
50
51
53       Copyright (c) 2004 - 2006 NLnet Labs.
54
55       Licensed under the BSD License. There is NO warranty; not even for MER‐
56       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
57
58

SEE ALSO

60       ldns_rr_list, ldns_rr.  And perldoc Net::DNS, RFC1034, RFC1035,
61       RFC4033, RFC4034  and RFC4035.
62

REMARKS

64       This manpage was automatically generated from the ldns source code.
65
66
67
68                                  30 May 2006                          ldns(3)
Impressum