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_update_pkt_new era πŸ’–

okay bestie, welcome to the ldns(3) library functions manual, this one's all about ldns_update_pkt_new and honestly? it's giving packet-builder energy ✨


🌸 NAME 🌸

ldns_update_pkt_new β€” create an update packet πŸŽ€


✨ SYNOPSIS ✨

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

#include <ldns/ldns.h>

ldns_pkt* ldns_update_pkt_new(ldns_rdf *zone_rdf, ldns_rr_class clas,
const ldns_rr_list *pr_rrlist, const ldns_rr_list *up_rrlist, const
ldns_rr_list *ad_rrlist);

like, yes, that's the whole signature. slay. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so ldns_update_pkt_new() literally creates an update packet out of the zone name, the class, and the rr lists. main character function behavior fr fr. πŸ‘‘

here's the breakdown of what you're feeding it:

  • zone_rdf β€” the name of the zone. πŸ—ΊοΈ and listen, this is important: the returned packet will take ownership of zone_rdf, so the caller should not free it. no cap. hands off, bestie. πŸ™ˆ
  • clas β€” the zone class.
  • pr_rrlist β€” list of Prerequisite Section RRs.
  • up_rrlist β€” list of Updates Section RRs.
  • ad_rrlist β€” list of Additional Data Section RRs (currently unused πŸ‘€).

and it returns the new packet. that's it, that's the vibe. 🌈


πŸ‘‘ AUTHOR πŸ‘‘

The ldns team at NLnet Labs. πŸ’œ


😭 REPORTING BUGS 😭

found something cursed? please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues β€” they wanna know, fr fr. 🫢


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. like, zero. none. don't come for them. πŸ’€


🌟 SEE ALSO 🌟

  • ldns_update_pkt_tsig_add
  • ldns_update_pkt_tsig_add
  • ldns_update_zocount
  • ldns_update_prcount
  • ldns_update_upcount
  • ldns_update_adcount
  • ldns_update_set_zocount
  • ldns_update_set_prcount
  • ldns_update_set_upcount
  • ldns_update_set_adcount

And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. πŸ“š iykyk.


πŸ’… REMARKS πŸ’…

This manpage was automatically generated from the ldns source code. πŸ€–βœ¨

and that's the whole page bestie!! πŸ¦‹ this one's from the ldns(3) manual, dated 30 May 2006 β€” yeah, it's vintage, it's iconic, it ate and left no crumbs. go build those update packets. periodt. πŸ’–πŸŒΈπŸŽ€