ldns(3)

πŸ“¦
version 1.9.2 Β· 2 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 compare
  • dname2: 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 dname
  • middle: the dname to check
  • next: 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 (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 βœ¨πŸ¦‹πŸ’œ