ahost(1)

ahost1

Print the a or aaaa record associated with a hostname or ip address

Usage

ahost [OPTION] ... HOST ...

Overview

Look up the DNS A or AAAA record associated with HOST (a hostname or an IP address).

This utility comes with the c-ares asynchronous resolver library.

Options

-d

Print some extra debugging output.

-h, -?

Display this help and exit.

-t type

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 (default).

-s server

Set the server list to use for DNS lookups.

-D domain

Specify the domain to search instead of using the default values from
/etc/resolv.conf. This option only has an effect on platforms that use
/etc/resolv.conf for DNS configuration; it has no effect on other platforms (such as Win32 or Android).

Reporting bugs

Report bugs to the c-ares mailing list:
https://lists.haxx.se/listinfo/c-ares

From c-ares 1.34.9-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.