NAME 

addrinfo, nameinfo - perform DNS lookups from scripts

SYNOPSIS 

addrinfo [-46mnr] [HOSTNAMES] nameinfo [-46n] [HOSTNAMES]

DESCRIPTON 

Write addresses or canonical hostname of specified names to the standard output. If no names are specified via the command line, they are read from the standard input.

OPTIONS 

-4 or --ipv4
Only try to perform IPv4 lookups.
-4 or --ipv4
Only try to perform IPv6 lookups.
-h or --help
Display some help and exit.
-m or --multiple
Normally, if a name yields multiple results, only the first one is printed. With this optional parameter, all results will be printed on a single line, separated by spaces.
-n or --numeric
Prevent forward hostname lookup. This ensures that the input names are numeric addresses, which do not need to be looked up. Typically used along with the --reverse option to convert numerical addresses to canonical hostnames.
-r or --reverse
Perform a reverse DNS lookup (enabled implicitly with addrinfo). addrinfo prints numerical resolved addresses by default instead.
--version
Display program version and license and exit.

SEE ALSO 

host(1), getaddrinfo(3), getnameinfo(3), resolv.conf(5)

AUTHOR 

R[char233]mi Denis-Courmont <rdenis at simphalempin.com>

$Id: addrinfo.1 295 2006-09-13 18:17:36Z remi $