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. Which consists out of Jelte Jansen and
32       Miek Gieben.
33
34

REPORTING BUGS

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

SEE ALSO

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

REMARKS

50       This manpage was automatically generated from the ldns source code by
51       use of Doxygen and some perl.
52
53
54
55                                  30 May 2006                          ldns(3)
Impressum