Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
HOSTIP(8)							     HOSTIP(8)

NAME
       hostip -	Resolve	a host name to an IP address

SYNOPSIS
       hostip [options]	host_name

DESCRIPTION
       hostip sends a DNS query	to a resolver, and prints the IP addresses for
       the given host name.

       It  can	be  useful  in	order  to   retrieve   IP   addresses	before
       dnscrypt-proxy(8) is started.

OPTIONS
       o   -6, --ipv6: ask for AAAA records.

       o   -h, --help: show usage.

       o   -r,	--resolver-address=<ip>[:port]:	 the  resolver IP address (de-
	   fault: 8.8.8.8, Google DNS).

       o   -V, --version: show version number.

SIMPLE USAGE EXAMPLE
       $ hostip	www.example.com

ADVANCED USAGE EXAMPLE
       $ hostip	-6 -r 4.2.2.2 www.google.com

EXIT STATUS
       The hostip utility exits	0 on success, and > 0 if an error occurs.

SEE ALSO
       dnscrypt-proxy(8)

				 January 2017			     HOSTIP(8)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | SIMPLE USAGE EXAMPLE | ADVANCED USAGE EXAMPLE | EXIT STATUS | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=hostip&sektion=8&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help