DNS::LD...taChain(3)

πŸ’– NAME πŸ’–

DNS::LDNS::DNSSecDataChain β€” bestie, it's a DNSSec data chain element πŸ¦‹

Like, this little cutie is one link in the DNSSec trust chain. That's the whole vibe. The page itself lives in the User Contributed Perl Documentation section, and yeah, its name is literally DNS::LDNS::DNSSecDataChain(3). Iconic, long, slay. πŸ’…


✨ SYNOPSIS ✨

  use DNS::LDNS ':all'

  chain = new DNS::LDNS::DNSSecDataChain
  chain->print(fp)
  chain->derive_trust_tree(rr)
  chain->derive_trust_tree_time(rr, checktime)

  # Node attributes
  rrset = chain->rrset
  rrset = chain->signatures
  rrtype = chain->parent_type
  pchain = chain->parent
  rcode = chain->packet_rcode
  rrtype = chain->packet_qtype
  bool = chain->packet_nodata

okay so real quick, let me walk you through what's happening here 🫢

First you pull in the goods with use DNS::LDNS ':all' β€” no semicolon at the end, I know, I know, that's just how they wrote it, don't come for me, I'm just the messenger. 😭

Then you can spin up a brand-new chain object with new DNS::LDNS::DNSSecDataChain. Main character energy, fr fr. ✨

After that you've got your methods:

  • chain->print(fp) β€” prints the chain out to fp
  • chain->derive_trust_tree(rr) β€” derives the trust tree from rr
  • chain->derive_trust_tree_time(rr, checktime) β€” same thing but you also hand it a checktime

And then the node attributes, aka the lil peekaboo accessors πŸ‘€:

  • rrset = chain->rrset β€” grabs the rrset
  • rrset = chain->signatures β€” grabs the signatures, also an rrset situation
  • rrtype = chain->parent_type β€” gives you the parent's type as an rrtype
  • pchain = chain->parent β€” hands back the parent chain as pchain
  • rcode = chain->packet_rcode β€” the packet's rcode
  • rrtype = chain->packet_qtype β€” the packet's question type, as an rrtype
  • bool = chain->packet_nodata β€” a bool telling you about packet nodata

That's the whole menu bestie, no cap. πŸ“


🌈 SEE ALSO 🌈

http://www.nlnetlabs.nl/projects/ldns

Go read up on LDNS if you wanna know more, the link is right there, I'm not doing your homework for you. 🧚


πŸ‘‘ AUTHOR πŸ‘‘

Erik Pihl Ostlyngen, <erik.ostlyngen@uninett.no> β€” give him his flowers πŸ’


Copyright (C) 2013 by UNINETT Norid AS

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.

So basically: free software, same terms as Perl itself, Perl 5.14.2 or literally any newer Perl you happen to have. You have options, bestie. Use them wisely. πŸ’…

aaaand that's the page!! πŸ¦‹ this was DNS::LDNS::DNSSecDataChain(3) from perl v5.42.2, dated 2026-06-11, and honestly? she ate. no crumbs. periodt. πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from