ldns(3)
π ldns(3) β the ldns library, bestie edition π
okay so you're reading the ldns(3) page from the Library Functions Manual β welcome, you're gonna love it here π«Ά
β¨ NAME β¨
ldns_dname_compare, ldns_dname_interval β comparing two dnames, that's the whole job π
πΈ SYNOPSIS πΈ
#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h>
int ldns_dname_compare(const ldns_rdf *dname1, const ldns_rdf *dname2);
int ldns_dname_interval(const ldns_rdf *prev, const ldns_rdf *middle,
const ldns_rdf *next);
π¦ DESCRIPTION π¦
ldns_dname_compare()
So this one compares the two dname rdf's according to the algorithm for ordering in RFC4034 Section 6. literally the canon ordering algorithm, no cap.
dname1: First dname rdf to comparedname2: Second dname rdf to compare
Returns -1 if dname1 comes before dname2, 1 if dname1 comes after dname2, and 0 if they are equal. iconically simple π
ldns_dname_interval()
checks if middle lays in the interval defined by prev and next, like:
prev <= middle < next
This is useful for nsec checking π
prev: the previous dnamemiddle: the dname to checknext: the next dname
return 0 on error or unknown, -1 when middle is in the interval, +1 when not π
π AUTHOR π
The ldns team at NLnet Labs. obsessed with them fr fr π
π REPORTING BUGS π
Please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues
not me asking you to file an issue β do it bestie, they wanna know π
π 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.
no warranty at all, like zero, nada, don't come for them if it breaks π
π SEE ALSO π
ldns_dname_is_subdomain. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.
π§ REMARKS π§
This manpage was automatically generated from the ldns source code. (yes, a robot wrote it, and now a girlie rewrote the robot's homework π )
and that's the whole page!! π this was ldns(3) β the source/version on the footer is the ldns(3) manual, dated 30 May 2006 π slay, ate, periodt, go compare some dnames β¨π¦π
π¦ 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