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

NAME

6       ldns_dname_is_subdomain, ldns_dname_str_absolute, ldns_dname_label -
7       check properties of dnames
8
9

SYNOPSIS

11       #include <stdint.h>
12       #include <stdbool.h>
13
14       #include <ldns/ldns.h>
15
16       bool ldns_dname_is_subdomain(const ldns_rdf *sub, const ldns_rdf *par‐
17       ent);
18
19       bool ldns_dname_str_absolute(const char *dname_str);
20
21       ldns_rdf * ldns_dname_label(const ldns_rdf *rdf, uint8_t labelpos);
22

DESCRIPTION

24       ldns_dname_is_subdomain() test wether the name sub falls under parent
25              (i.e. is a subdomain of parent). This function will return false
26              if the given dnames are equal.
27              sub: the name to test
28              parent: the parent's name
29              Returns true if sub falls under parent, otherwise false
30
31       ldns_dname_str_absolute() Checks whether the given dname string is
32              absolute (i.e. ends with a '.')
33              *dname_str: a string representing the dname
34              Returns true or false
35
36       ldns_dname_label() look inside the rdf and if it is an
37              LDNS_RDF_TYPE_DNAME try and retrieve a specific label. The
38              labels are numbered starting from 0 (left most).
39              rdf: the rdf to look in
40              labelpos: return the label with this number
41              Returns a ldns_rdf* with the label as name or NULL on error
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

SEE ALSO

60       perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.
61

REMARKS

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