blob: c83cfcf999eafd7fcdc4a8a90beea36d92dc2c44 [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001.TH AHOST "1" "April 2011" "c-ares utilities"
2.SH NAME
3ahost \- print the A or AAAA record associated with a hostname or IP address
4.SH SYNOPSIS
5.B ahost
6[\fIOPTION\fR]... \fIHOST\fR...
7.SH DESCRIPTION
8.PP
9.\" Add any additional description here
10.PP
11Look up the DNS A or AAAA record associated with HOST (a hostname or an
12IP address).
13.PP
14This utility comes with the \fBc\-ares\fR asynchronous resolver library.
15.SH OPTIONS
16.TP
17\fB\-d\fR
18Print some extra debugging output.
19.TP
20\fB\-h\fR, \fB\-\-help\fR
21Display this help and exit.
22.TP
23\fB\-t\fR type
24If type is "a", print the A record (default).
25If type is "aaaa", print the AAAA record.
26If type is "u", look for either AAAA or A record (in that order).
27.TP
28\fB\-s\fR \fIdomain\fP
29Specify the \fIdomain\fP to search instead of using the default values from
30.br
31/etc/resolv.conf. This option only has an effect on platforms that use
32.br
33/etc/resolv.conf
34for DNS configuration; it has no effect on other platforms (such as Win32
35or Android).
36.SH "REPORTING BUGS"
37Report bugs to the c-ares mailing list:
38\fBhttp://cool.haxx.se/mailman/listinfo/c-ares\fR
39.SH "SEE ALSO"
40.PP
41acountry(1), adig(1).
42.SH COPYRIGHT
43This utility is based on code/ideas contained in sofware written by Greg Hudson (ares)
44carrying the following notice:
45.br
46Copyright 1998 by the Massachusetts Institute of Technology.
47.br
48Permission to use, copy, modify, and distribute this software and its
49documentation for any purpose and without fee is hereby granted,
50provided that the above copyright notice appear in all copies and that
51both that copyright notice and this permission notice appear in
52supporting documentation, and that the name of M.I.T. not be used in
53advertising or publicity pertaining to distribution of the software
54without specific, written prior permission. M.I.T. makes no
55representations about the suitability of this software for any
56purpose. It is provided "as is" without express or implied warranty.
57.br
58No further copyright claims are being made by the author(s) of this utility.