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

✨ NAME ✨

okay bestie, so this is the ldns(3) manual page from the library functions manual, and today's lineup is these three little icons:

  • ldns_dname_is_subdomain
  • ldns_dname_str_absolute
  • ldns_dname_label

and the whole vibe is: check properties of dnames. that's it, that's the job πŸ’…


🌸 SYNOPSIS 🌸

like, here's what you gotta include first, no skips:

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

#include <ldns/ldns.h>
bool ldns_dname_is_subdomain(const ldns_rdf *sub, const ldns_rdf
*parent);
bool ldns_dname_str_absolute(const char *dname_str);
ldns_rdf * ldns_dname_label(const ldns_rdf *rdf, uint8_t labelpos);

πŸ’– DESCRIPTION πŸ’–

πŸ¦‹ ldns_dname_is_subdomain()

this one tests whether the name sub falls under parent β€” as in, is sub a subdomain of parent? 🫢 and heads up: this function will return false if the given dnames are equal. so like, a name is not its own subdomain, ok? noted.

  • sub β€” the name to test
  • parent β€” the parent's name

Returns true if sub falls under parent, otherwise false.

πŸŽ€ ldns_dname_str_absolute()

checks whether the given dname string is absolute β€” i.e. does it end with a .? that trailing dot is the whole personality trait here bestie πŸ”₯

  • *dname_str β€” a string representing the dname

Returns true or false.

🧚 ldns_dname_label()

looks inside the rdf, and if it's an LDNS_RDF_TYPE_DNAME it tries to retrieve a specific label. the labels are numbered starting from 0 (left most) πŸ’œ

  • rdf β€” the rdf to look in
  • labelpos β€” return the label with this number

Returns a ldns_rdf* with the label as name, or NULL on error. 😭


πŸ‘‘ AUTHOR πŸ‘‘

The ldns team at NLnet Labs.


πŸ› REPORTING BUGS πŸ›

Please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues β€” they genuinely wanna hear it, 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. so like, no cap, don't come for them if it breaks πŸ’€


🌈 SEE ALSO 🌈

perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. go read, it's giving required reading πŸ“šβœ¨


πŸ’… REMARKS πŸ’…

This manpage was automatically generated from the ldns source code. (yes, a robot wrote it. it still ate. πŸ“)


and that's a wrap, bestie 🫢 this was ldns(3), straight out of the library functions manual, dated 30 May 2006 β€” slay, periodt. πŸ’–πŸŽ€πŸ¦‹