AHOST(1)
π AHOST(1) β the General Commands Manual glow-up π
okay so bestie, welcome to ahost, a whole little icon from the General Commands Manual section 1, brought to you by the c-ares girlies π
β¨ NAME β¨
ahost β prints the A or AAAA record that's tied to a hostname or an IP address. that's it, that's the whole gig π«Ά
β¨ SYNOPSIS β¨
ahost [OPTION]... HOST...
πΈ DESCRIPTION πΈ
So basically: it looks up the DNS A or AAAA record associated with HOST, where HOST is either a hostname or an IP address. literally either one, she's flexible π
This little cutie ships with the c-ares asynchronous resolver library, so she's got good taste, iykyk β¨
π¦ OPTIONS π¦
-dβ prints some extra debugging output. not me turning on the debug mode when things get weird π-h,-?β displays this help and exits. classic, iconic, no notes π-ttype β the vibe check for which record you want:- if type is
"a", print the A record π - if type is
"aaaa", print the AAAA record π - if type is
"u", look for both AAAA and A records β and yes bestie, that's the default β
- if type is
-sserver β sets the server list to use for DNS lookups. you're the main character, you pick the server π-Ddomain β specifies the domain to search instead of using the default values from/etc/resolv.conf. β οΈ but listen: this option only has an effect on platforms that use/etc/resolv.conffor DNS configuration. on other platforms (such as Win32 or Android) it has no effect at all, so don't come for her when nothing happens, fr fr π
π REPORTING BUGS π
Found a bug? Report it to the c-ares mailing list, they're literally waiting:
https://lists.haxx.se/listinfo/c-ares
π§ SEE ALSO π§
adig(1) β her sibling, also slaying π«
and that's the whole page, bestie π this cutie is one of the c-ares utilities, dated April 2011, and yes she's still serving. periodt π π·
π¦ where this page comes from
- alpine 3.22: c-ares-doc 1.34.9-r0 Β· MIT
- alpine 3.23: c-ares-doc 1.34.9-r0 Β· MIT
- alpine 3.24: c-ares-doc 1.34.9-r0 Β· MIT
- arch rolling: c-ares 1.34.9-1 Β· MIT
- nixos 26.05: c-ares 1.34.9
- opensuse-leap 16.0: c-ares-utils 1.34.8-160000.1.1 Β· MIT
- opensuse-leap 16.0: c-ares-utils 1.34.8-160000.1.1 Β· MIT
- opensuse-leap 16.0: c-ares-utils 1.34.8-160000.1.1 Β· MIT
- opensuse-leap 16.0: c-ares-utils 1.34.8-160000.1.1 Β· MIT
- π the page's license: MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms