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 β€” the string-conversion girlies πŸ’–

okay so bestie, welcome to the ldns(3) manual page, from the Library Functions Manual, and honestly? this one is a whole vibe. it's the conversions to string page. that's it. that's the girl. she takes your DNS stuff and turns it into pretty text so you can actually read it with your eyeballs. slay. ✨


✨ NAME ✨

ldns_rr2str, ldns_pkt2str, ldns_rdf2str, ldns_rr_list2str, ldns_key2str β€” functions for conversions to string πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

like, here's the whole cast, no cap:

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

#include <ldns/ldns.h>

char* ldns_rr2str(const ldns_rr *rr);

char* ldns_pkt2str(const ldns_pkt *pkt);

char* ldns_rdf2str(const ldns_rdf *rdf);

char* ldns_rr_list2str(const ldns_rr_list *rr_list);

char* ldns_key2str(const ldns_key *k);

πŸ’… DESCRIPTION πŸ’…

five little functions, all of them doing the same iconic thing: giving you back a char * with presentation format in it. and literally every single one of them comes with the same reminder, so I'm gonna say it once and mean it five times: remember to free it. she's giving you memory, bestie. she's not taking it back. 🫢


🌸 ldns_rr2str() 🌸

Converts the data in the resource record to presentation format and returns that as a char *. Remember to free it.

  • rr: The rdata field to convert
  • Returns null terminated char * data, or NULL on error 😭

🌈 ldns_pkt2str() 🌈

Converts the data in the DNS packet to presentation format and returns that as a char *. Remember to free it.

  • pkt: The rdata field to convert
  • Returns null terminated char * data, or NULL on error 😭

πŸŽ€ ldns_rdf2str() πŸŽ€

Converts the data in the rdata field to presentation format and returns that as a char *. Remember to free it.

  • rdf: The rdata field to convert
  • Returns null terminated char * data, or NULL on error 😭

πŸ¦‹ ldns_rr_list2str() πŸ¦‹

Converts a list of resource records to presentation format and returns that as a char *. Remember to free it.

  • rr_list: the rr_list to convert to text
  • Returns null terminated char * data, or NULL on error 😭

πŸ‘‘ ldns_key2str() πŸ‘‘

Converts a private key to the test presentation fmt and returns that as a char *. Remember to free it.

  • k: the key to convert to text
  • Returns null terminated char * data, or NULL on error 😭

πŸ’œ AUTHOR πŸ’œ

The ldns team at NLnet Labs. icons, every one of them. periodt. πŸ’…


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found something sus? 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.

not me reading the no-warranty line every single time and still being shocked. it's giving "use at your own risk, bestie". 😭

πŸ”₯ SEE ALSO πŸ”₯

ldns_rr_print, ldns_rdf_print, ldns_pkt_print, ldns_rr_list_print, ldns_resolver_print, ldns_zone_print. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.

iykyk. go read the RFCs, they're lowkey iconic. πŸ“š


🧚 REMARKS 🧚

This manpage was automatically generated from the ldns source code. (yes, a robot wrote this. she ate though. πŸ€–βœ¨)


okay that's the whole page, babe β€” you made it to the end, main character energy fr. this one's from the ldns(3) manual, dated 30 May 2006, and it says ldns(3) down at the bottom too. go forth and convert things to strings, and remember to free them. mwah. πŸ’–