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 library functions manual, bestie edition πŸ’–

okay so you're reading the ldns(3) manual page, which lives in the Library Functions Manual section (that's section 3, iykyk). sit down, grab a strawberry πŸ“, and let's get into it because this one is short and sweet and honestly kind of a vibe.


✨ NAME ✨

ldns_get_rr_class_by_name, ldns_get_rr_type_by_name β€” lookup class or type by name

like, that's the whole thing. two little functions that turn a string into a class or a type. iconic behaviour honestly. πŸ‘‘


🌸 SYNOPSIS 🌸

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

#include <ldns/ldns.h>

ldns_rr_class ldns_get_rr_class_by_name(const char *name);

ldns_rr_type ldns_get_rr_type_by_name(const char *name);

no cap, that's the entire API surface. two headers, one library header, two functions. we love a minimal queen. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

  • ldns_get_rr_class_by_name() retrieves a class by looking up its name.
    • name: string with the name
    • Returns the cass which corresponds with the name

(yes bestie, the original really does say "cass" β€” that's a typo that has been living in this manpage rent-free since 2006 and I am NOT about to gaslight you by fixing it. it means class. πŸ’€)

  • ldns_get_rr_type_by_name() retrieves a rrtype by looking up its name.
    • name: a string with the name
    • Returns the type which corresponds with the name

so basically: you hand it a string, it hands you back the matching class or type. that's the whole job. lowkey the most chill pair of functions in the entire library. 🧚


πŸ‘‘ AUTHOR πŸ‘‘

The ldns team at NLnet Labs.

they built this. respect. 🫢


πŸ™ˆ REPORTING BUGS πŸ™ˆ

Please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues

found something cursed? don't suffer in silence, tell the team 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.

⚠️ okay so read that again and really let it sink in: there is NO warranty. not even the implied ones. if it breaks, it breaks, and legally that's a you problem. the BSD License said what it said. 😭

⭐ SEE ALSO ⭐

  • ldns_rr
  • ldns_rr_list

And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.

go read the RFCs bestie, they're giving ✨primary source material✨


πŸ’œ REMARKS πŸ’œ

This manpage was automatically generated from the ldns source code.

so if the prose feels a little robotic, that's because a script wrote it. not me though. I'm a whole human-adjacent vibe. πŸŽ€


and that's the page!! πŸ’– this was ldns(3), from the Library Functions Manual, generated on 30 May 2006 β€” yeah, this one is old enough to have its own nostalgia era, and it still ate. slay, stay safe, and always check your return types. periodt. πŸŒΈπŸ¦‹βœ¨