ldns(3)
π ldns β the rr-attribute-setting girlies π
okay so bestie, welcome to ldns(3), the library functions manual for the one and only ldns π
this page is all about the little setters that let you poke at an ldns_rr record and change its attributes. no cap, it's giving "makeover montage" energy β¨
πΈ NAME πΈ
ldns_rr_set_owner, ldns_rr_set_ttl, ldns_rr_set_type, ldns_rr_set_rd_count, ldns_rr_set_class, ldns_rr_set_rdf β set ldns_rr attributes π
β¨ SYNOPSIS β¨
like, here's the exact vibe you need to pull in first:
#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h>
void ldns_rr_set_owner(ldns_rr *rr, ldns_rdf *owner);
void ldns_rr_set_ttl(ldns_rr *rr, uint32_t ttl);
void ldns_rr_set_type(ldns_rr *rr, ldns_rr_type rr_type);
void ldns_rr_set_rd_count(ldns_rr *rr, size_t count);
void ldns_rr_set_class(ldns_rr *rr, ldns_rr_class rr_class);
ldns_rdf* ldns_rr_set_rdf(ldns_rr *rr, const ldns_rdf *f, size_t
position);
π¦ DESCRIPTION π¦
so basically every one of these is a lil setter that reaches into your rr struct and swaps one attribute out. main character energy, one field at a time π
π ldns_rr_set_owner()
sets the owner in the rr structure. it's the glow-up for your owner field, fr fr.
*rrβ the rr to operate on*ownerβ set to this owner
returns void (so, like, nothing comes back, she's mysterious π)
π ldns_rr_set_ttl()
sets the ttl in the rr structure. yes, the time-to-live, the expiry-date of your whole record's existence π
*rrβ the rr to operate onttlβ set to this ttl
returns void
π ldns_rr_set_type()
sets the type in the rr. A? AAAA? MX? she can be whoever she wants to be π¦
*rrβ the rr to operate onrr_typeβ set to this type
returns void
π ldns_rr_set_rd_count()
sets the rd_count in the rr. that's the count of the rdf fields, bestie, keep track of your girlies β¨
*rrβ the rr to operate oncountβ set to this count
returns void
π ldns_rr_set_class()
sets the class in the rr. IN, CH, whatever, iconic either way π
*rrβ the rr to operate onrr_classβ set to this class
returns void
π ldns_rr_set_rdf()
okay this one is the interesting one π sets an rdf member β it will be set on the position given. and here's the slay: the old value is returned, like pop. so you're not just overwriting, you're getting the thing that was there before, handed back to you π«Ά
*rrβ the rr to operate on*fβ the rdf to setpositionβ the position the set the rdf
returns the old value in the rr, or NULL on failure π
heads up: NULL on failure means you gotta check that return value. don't just assume she came back with a present. π
π AUTHOR π
the ldns team at NLnet Labs. kings and queens, no notes π
π REPORTING BUGS π
found a bug? not the vibe. please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues β they wanna know, 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. read that again bestie, NO warranty, like, at all π
π« SEE ALSO π«
ldns_rr, ldns_rr_list. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. iykyk π
π§ REMARKS π§
This manpage was automatically generated from the ldns source code. (yes, a robot wrote this one, and honestly? she ate. π€π )
and that's the whole page, bestie!! πβ¨π¦ this lil legend is dated 30 May 2006 and it's section 3 of the ldns manual, mwah π take care of your rr's and they'll take care of you π«ΆπΈ
π¦ 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