dns_name4(3)
NAME π
okay bestie, this is the dns_name4(3) page from the Library Functions Manual β and it's all about dns_name4, the function that does one job: look up host name. iconic behavior, honestly. π
SYNTAX <β¨>
#include <libowfat/dns.h>
int dns_name4(stralloc* out,const char* ip[4]);
DESCRIPTION <π >
okay so here's the tea: dns_name4 is gonna look up the domain name for the 4-byte IP address sitting in ip. Then it drops the (first) domain name into out and returns 0. slay. β¨
But if the relevant in-addr.arpa domain does not exist in DNS, or has no PTR records, then out will be empty. no cap. π
If dns_name4 has trouble with the DNS lookup or runs out of memory, it returns -1, setting errno appropriately. also important: it may or may not change out. so don't assume, bestie. π
SEE ALSO <π>
signing off from dns_name4(3) in the Library Functions Manual π no date stamp on this page, just the manual name and the vibes, periodt. π¦
π¦ 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