ldns(3)
π 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 pointnext_ownerβ the rrlist which the nsec rr should point torrsβ all rrs from the zone, to find all RR types ofcur_ownerin
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 π
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 πβ¨
π¦ 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