LinuxCommandLibrary

ahost

DNS lookup utility to display the A or AAAA record linked with a hostname or IP address.

TLDR

Print an A or AAAA record associated with a hostname or IP address

$ ahost [example.com]
copy


Display some extra debugging output
$ ahost -d [example.com]
copy


Display the record with a specified type
$ ahost -t [a|aaaa|u] [example.com]
copy

Copied to clipboard