1 .\" generated with Ronn/v0.7.3
2 .\" http://github.com/rtomayko/ronn/tree/0.7.3
4 .TH "HOSTIP" "8" "February 2014" "" ""
7 \fBhostip\fR \- Resolve a host name to an IP address
10 \fBhostip\fR [\fIoptions\fR] host_name
13 \fBhostip\fR sends a DNS query to a resolver, and prints the IP addresses for the given host name\.
16 It can be useful in order to retrieve IP addresses before dnscrypt\-proxy(8) is started\.
21 \fB\-6\fR, \fB\-\-ipv6\fR: ask for AAAA records\.
24 \fB\-h\fR, \fB\-\-help\fR: show usage\.
27 \fB\-r\fR, \fB\-\-resolver\-address=<ip>[:port]\fR: the resolver IP address (default: 8\.8\.8\.8, Google DNS)\.
30 \fB\-V\fR, \fB\-\-version\fR: show version number\.
34 .SH "SIMPLE USAGE EXAMPLE"
38 $ hostip www\.example\.com
42 .SH "ADVANCED USAGE EXAMPLE"
46 $ hostip \-6 \-r 4\.2\.2\.2 www\.google\.com
51 The \fBhostip\fR utility exits 0 on success, and > 0 if an error occurs\.