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 πŸ‘‘
  • -t type β€” 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 ⭐
  • -s server β€” sets the server list to use for DNS lookups. you're the main character, you pick the server πŸŽ€
  • -D domain β€” 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.conf for 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 πŸ’…πŸŒ·