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

NAME

6       ldns_dname_is_subdomain, ldns_dname_str_absolute, ldns_dname_label
7
8

SYNOPSIS

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

DESCRIPTION

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

AUTHOR

43       The  ldns  team  at  NLnet Labs. Which consists out of Jelte Jansen and
44       Miek Gieben.
45
46

REPORTING BUGS

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

SEE ALSO

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

REMARKS

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