dns_name6_domain(3)

πŸ“¦
version 0.34 Β· 2 versions
  • 0.34 Β· alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.30 Β· fedora 43, fedora 44, ubuntu jammy
, in alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

omg bestie, welcome to the Library Functions Manual page for dns_name6_domain(3). It's giving reverse-lookup hostname construction, and we're obsessed. πŸ’…βœ¨


✨ NAME ✨

dns_name6_domain β€” construct host name for reverse lookup. That's the whole assignment, no cap. πŸŽ€

πŸ¦‹ SYNTAX πŸ¦‹

#include <libowfat/dns.h>

void dns_name6_domain(char q[DNS_NAME6_DOMAIN],
                      const char* ip[16]);

🌸 DESCRIPTION 🌸

Okay so dns_name6_domain is a low-level component of dns_name6. It converts an IP address such as 4321:0:1:2:3:4:567:89ab into a domain name such as b.a.9.8.7.6.5.0.4.0.0.0.3.0.0.0.2.0.0.0.1.0.0.0.0.0.0.0.1.2.3.4.IP6.ARPA and places the packet-encoded domain name into q.

q is zero terminated. 🫢

q must have space for DNS_NAME6_DOMAIN bytes. Periodt. πŸ’–

lowkey important: q needs that DNS_NAME6_DOMAIN bytes room, so don't skimp on the buffer, bestie. It's a real requirement. 😭

🌈 SEE ALSO 🌈

Go be nosy with dns_name6(3) and dns_name4_domain(3). The way they're all connected... iykyk. πŸ¦‹


kisses from the Library Functions Manual, page dns_name6_domain(3) β€” no date printed in the footer, so it's timeless, literally. πŸ’…πŸ’–