LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ahost

Look up DNS address records

TLDR

Print an A or AAAA record associated with a hostname
$ ahost [example.com]
copy
Display extra debugging output
$ ahost -d [example.com]
copy
Display the record with a specified type
$ ahost -t [a|aaaa|u] [example.com]
copy

SYNOPSIS

ahost [-d] [-s server] [-t type] [-D domain] hostname

DESCRIPTION

ahost is a DNS lookup utility that displays the A (IPv4) or AAAA (IPv6) records associated with a hostname or IP address. It uses the c-ares asynchronous DNS library to perform lookups, making it non-blocking and efficient.Unlike the more common host or dig commands, ahost is specifically designed as a lightweight demonstration and utility tool from the c-ares library. It supports reverse lookups (when given an IP address) and can query for specific record types.

PARAMETERS

-d

Display extra debugging output
-s server
Set the server list to use for DNS lookups
-t type
Display the record with a specified type: a for the A record, aaaa for the AAAA record, or u to look for both AAAA and A records (the default)
-D domain
Specify the search domain instead of using the default values from /etc/resolv.conf (only on platforms that use /etc/resolv.conf)

INSTALL

sudo apk add c-ares-utils
copy
sudo zypper install c-ares-utils
copy

CAVEATS

Part of the c-ares library tools. May have different features compared to the more common host command.

HISTORY

Part of the c-ares asynchronous DNS resolver library, originally forked from the ares library.

SEE ALSO

adig(1), acountry(1), host(1), dig(1), nslookup(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid