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. Which consists out of Jelte Jansen and
45       Miek Gieben.
46
47

REPORTING BUGS

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

SEE ALSO

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

REMARKS

65       This manpage was automatically generated from the ldns source code by
66       use of Doxygen and some perl.
67
68
69
70                                  30 May 2006                          ldns(3)
Impressum