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