dns_name6_domain(3)
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:qneeds thatDNS_NAME6_DOMAINbytes 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. π
π
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· GPL-2.0-only
- debian bookworm: libowfat-dev 0.32-4 Β· GPL-2.0-only
- debian trixie: libowfat-dev 0.32-5 Β· GPL-2.0-only
- nixos 26.05: libowfat 0.34
- nixpkgs unstable: libowfat 0.34
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- ubuntu noble: libowfat-dev 0.32-4.1build1 Β· GPL-2.0-only
- ubuntu questing: libowfat-dev 0.32-5
- ubuntu resolute: libowfat-dev 0.34-2 Β· GPL-2.0-only
- ubuntu stonking: libowfat-dev 0.34-2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms