1ldns(25 Apr 2005) ldns(25 Apr 2005)
2
3
4
6 ldns_dname_is_subdomain, ldns_dname_str_absolute, ldns_dname_label
7
8
10 #ifdef HAVE_STDINT_H
11 #include <stdint.h>
12 #endif /* HAVE_STDINT_H */
13
14 #ifdef HAVE_STDBOOL_H
15 #include <stdbool.h>
16 #endif /* HAVE_STDBOOL_H */
17
18 #include <ldns/ldns.h>
19
20 bool ldns_dname_is_subdomain(const ldns_rdf *sub, const ldns_rdf *par‐
21 ent);
22
23 bool ldns_dname_str_absolute(const char *dname_str);
24
25 ldns_rdf * ldns_dname_label(const ldns_rdf *rdf, uint8_t labelpos);
26
28 ldns_dname_is_subdomain() test wether the name sub falls under parent
29 (i.e. is a subdomain of parent.
30 sub: the name to test
31 parent: the parent's name
32 Returns true if sub falls under parent, otherwise false
33
34 ldns_dname_str_absolute() Checks whether the given dname string is
35 absolute (i.e. ends with a '.')
36 *dname_str: a string representing the dname
37 Returns true or false
38
39 ldns_dname_label() look inside the rdf and if it is an
40 LDNS_RDF_TYPE_DNAME try and retrieve a specific label. The
41 labels are numbered starting from 0 (left most).
42 rdf: the rdf to look in
43 labelpos: return the label with this number
44 Returns a ldns_rdf* with the label as name or NULL on error
45
47 The ldns team at NLnet Labs. Which consists out of: Jelte Jansen, Erik
48 Rozendaal and Miek Gieben.
49
50
52 Please report bugs to ldns-team@nlnetlabs.nl or in our Bugzilla at
53 http://www.nlnetlabs.nl/bugs/index.html
54
55 Be sure to select ldns as the product.
56
57
59 Copyright (c) 2004, 2005 NLnet Labs. Licensed under the BSD License.
60 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
61 PARTICULAR PURPOSE.
62
64 perldoc Net::DNS, RFC1043, RFC1035, RFC4033, RFC4034 and RFC4035.
65
67 This manpage was automaticly generated from the ldns source code by use
68 of Doxygen and some perl.
69
70
71
72 ldns(25 Apr 2005)