ldns(3)
β¨ NAME β¨
okay bestie, so this is the ldns(3) manual page from the library functions manual, and today's lineup is these three little icons:
ldns_dname_is_subdomainldns_dname_str_absoluteldns_dname_label
and the whole vibe is: check properties of dnames. that's it, that's the job π
πΈ SYNOPSIS πΈ
like, here's what you gotta include first, no skips:
#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h>
bool ldns_dname_is_subdomain(const ldns_rdf *sub, const ldns_rdf
*parent);
bool ldns_dname_str_absolute(const char *dname_str);
ldns_rdf * ldns_dname_label(const ldns_rdf *rdf, uint8_t labelpos);
π DESCRIPTION π
π¦ ldns_dname_is_subdomain()
this one tests whether the name sub falls under parent β as in, is sub a subdomain of parent? π«Ά and heads up: this function will return false if the given dnames are equal. so like, a name is not its own subdomain, ok? noted.
subβ the name to testparentβ the parent's name
Returns true if sub falls under parent, otherwise false.
π ldns_dname_str_absolute()
checks whether the given dname string is absolute β i.e. does it end with a .? that trailing dot is the whole personality trait here bestie π₯
*dname_strβ a string representing the dname
Returns true or false.
π§ ldns_dname_label()
looks inside the rdf, and if it's an LDNS_RDF_TYPE_DNAME it tries to retrieve a specific label. the labels are numbered starting from 0 (left most) π
rdfβ the rdf to look inlabelposβ return the label with this number
Returns a ldns_rdf* with the label as name, or NULL on error. π
π AUTHOR π
The ldns team at NLnet Labs.
π REPORTING BUGS π
Please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues β they genuinely wanna hear it, fr fr π
π COPYRIGHT π
Copyright (c) 2004 - 2006 NLnet Labs.
Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. so like, no cap, don't come for them if it breaks π
π SEE ALSO π
perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. go read, it's giving required reading πβ¨
π REMARKS π
This manpage was automatically generated from the ldns source code. (yes, a robot wrote it. it still ate. π)
and that's a wrap, bestie π«Ά this was ldns(3), straight out of the library functions manual, dated 30 May 2006 β slay, periodt. πππ¦
π¦ where this page comes from
- alpine 3.22: ldns-doc 1.8.4-r0 Β· BSD-3-Clause
- alpine 3.23: ldns-doc 1.8.4-r1 Β· BSD-3-Clause
- alpine 3.24: ldns-doc 1.8.4-r1 Β· BSD-3-Clause
- arch rolling: ldns 1.9.2-1 Β· custom:BSD
- debian trixie: libldns-dev 1.8.4-2+b1
- fedora 43: ldns-devel 1.8.4-8.fc43 Β· BSD-3-Clause
- fedora 43: ldns-devel 1.8.4-8.fc43 Β· BSD-3-Clause
- fedora 43: ldns-devel 1.9.2-1.fc43 Β· BSD-3-Clause
- fedora 43: ldns-devel 1.9.2-1.fc43 Β· BSD-3-Clause
- fedora 44: ldns-devel 1.9.0-2.fc44 Β· BSD-3-Clause
- fedora 44: ldns-devel 1.9.0-2.fc44 Β· BSD-3-Clause
- fedora 44: ldns-devel 1.9.2-1.fc44 Β· BSD-3-Clause
- fedora 44: ldns-devel 1.9.2-1.fc44 Β· BSD-3-Clause
- nixos 26.05: ldns 1.9.2
- nixpkgs unstable: ldns 1.9.2
- opensuse-leap 16.0: ldns-devel 1.8.4-160000.3.1 Β· BSD-3-Clause
- opensuse-leap 16.0: ldns-devel 1.8.4-160000.3.1 Β· BSD-3-Clause
- opensuse-leap 16.0: ldns-devel 1.8.4-160000.3.1 Β· BSD-3-Clause
- opensuse-leap 16.0: ldns-devel 1.8.4-160000.3.1 Β· BSD-3-Clause
- ubuntu questing: libldns-dev 1.8.4-2build1
- ubuntu resolute: libldns-dev 1.8.4-2build3
- ubuntu stonking: libldns-dev 1.9.2-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms