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

NAME

6       ldns_getaddrinfo - mimic libc getaddrinfo
7
8

SYNOPSIS

10       #include <stdint.h>
11       #include <stdbool.h>
12
13       #include <ldns/ldns.h>
14
15       uint16_t ldns_getaddrinfo(ldns_resolver *res, const ldns_rdf *node,
16       ldns_rr_class c, ldns_rr_list **list);
17

DESCRIPTION

19       ldns_getaddrinfo() This function is a wrapper function for
20              ldns_get_rr_list_name_by_addr and ldns_get_rr_list_addr_by_name.
21              It's name is from the getaddrinfo() library call. It tries to
22              mimic that call, but without the lowlevel stuff.
23              res: The resolver. If this value is NULL then a resolver will be
24              created by ldns_getaddrinfo.
25              node: the name or ip address to look up
26              c: the class to look in
27              list: put the found RR's in this list
28              Returns the number of RR found.
29

AUTHOR

31       The ldns team at NLnet Labs.
32
33

REPORTING BUGS

35       Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
36       http://www.nlnetlabs.nl/bugs/index.html
37
38
40       Copyright (c) 2004 - 2006 NLnet Labs.
41
42       Licensed under the BSD License. There is NO warranty; not even for MER‐
43       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
44

SEE ALSO

46       perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.
47

REMARKS

49       This manpage was automatically generated from the ldns source code.
50
51
52
53                                  30 May 2006                          ldns(3)
Impressum