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_create_nsec β€” Create a NSEC record πŸ’–

okay bestie, we're deep in the ldns(3) library functions manual now, and today's main character is a little function that makes NSEC records. stay with me, it's giving DNS internals and honestly? kinda iconic. πŸ¦‹


✨ NAME ✨

ldns_create_nsec β€” Create a NSEC record

no cap, that's literally the whole name section. short and slay.


🌸 SYNOPSIS 🌸

#include <stdint.h>
#include <stdbool.h>

#include <ldns/ldns.h>

ldns_rr * ldns_create_nsec(ldns_rdf *cur_owner, ldns_rdf *next_owner,
ldns_rr_list *rrs);

so you pull in <stdint.h>, <stdbool.h>, and <ldns/ldns.h> β€” the holy trinity of "i'm about to do DNS stuff" β€” and then you call ldns_create_nsec() and it hands you back an ldns_rr *. periodt. πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

ldns_create_nsec() Create a NSEC record 🫢

like, it makes the NSEC record. that's the vibe. here's what you gotta feed it:

  • cur_owner β€” the current owner which should be taken as the starting point
  • next_owner β€” the rrlist which the nsec rr should point to
  • rrs β€” all rrs from the zone, to find all RR types of cur_owner in

and then β€” the moment we've all been waiting for β€” it Returns a ldns_rr with the nsec record in it. ✨ ate, no crumbs.

ngl, next_owner being described as "the rrlist which the nsec rr should point to" is exactly what the original says, so i'm keeping it verbatim bestie, don't come for me 😭

πŸ‘‘ AUTHOR πŸ‘‘

The ldns team at NLnet Labs. absolute legends, fr fr.


πŸ’€ REPORTING BUGS πŸ’€

found a bug? don't suffer in silence, bestie. please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues πŸ›


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.

okay that's the dramatic part β€” no warranty, not even for merchantability or fitness for a particular purpose. read it and weep, but like, legally. 😭

πŸ”₯ SEE ALSO πŸ”₯

  • ldns_sign_public

And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. the whole RFC cinematic universe, iykyk. πŸ“š


🧚 REMARKS 🧚

This manpage was automatically generated from the ldns source code. (not me being a robot-written page and still serving looks πŸ’…)


and that's the whole page, bestie! mwah πŸ’–

so this little beauty came out with ldns(3) as its manual name and it's from way back on 30 May 2006 β€” yeah, it's been slaying since 2006, we love a vintage queen πŸ‘‘βœ¨