dns_name6(3)
π dns_name6(3) β Library Functions Manual π
okay bestie, welcome to dns_name6, the little function that does reverse DNS for IPv6. it's giving "who is this address actually" energy and honestly? we're obsessed. π¦
β¨ NAME β¨
dns_name6 β look up host name π
πΈ SYNTAX πΈ
#include <libowfat/dns.h>
int dns_name6(stralloc* out,const char* ip[16]);
π DESCRIPTION π
so dns_name6 looks up the domain name for the 16-byte IPv6 address sitting in ip. it drops the (first) domain name into out and returns 0. slay. β¨
but likeβ¦ if the relevant ip6.arpa domain doesn't exist in DNS, or it just has no PTR records at all? then out will be empty. no name for you, bestie. π
if dns_name6 has trouble with the DNS lookup or runs out of memory, it returns -1 and sets errno appropriately. and here's the thing β it may or may not change out. so don't go assuming anything about what's in there, fr fr. π
lowkey important: that -1 return means something went wrong, not no name found. those are two different vibes. π«Ά
π SEE ALSO π
and that's the whole page, bestie!! π mwah. this was dns_name6(3) from the Library Functions Manual, so go forth and reverse-look-up those IPv6 addresses like the main character you are. πβ¨π
π¦ 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