ahost.1 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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\-?\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. .br
  39. \fBhttps://lists.haxx.se/listinfo/c-ares\fR
  40. .SH "SEE ALSO"
  41. .PP
  42. acountry(1), adig(1).
  43. .SH COPYRIGHT
  44. This utility is based on code/ideas contained in sofware written by Greg Hudson (ares)
  45. carrying the following notice:
  46. .br
  47. Copyright 1998 by the Massachusetts Institute of Technology.
  48. .br
  49. Permission to use, copy, modify, and distribute this software and its
  50. documentation for any purpose and without fee is hereby granted,
  51. provided that the above copyright notice appear in all copies and that
  52. both that copyright notice and this permission notice appear in
  53. supporting documentation, and that the name of M.I.T. not be used in
  54. advertising or publicity pertaining to distribution of the software
  55. without specific, written prior permission. M.I.T. makes no
  56. representations about the suitability of this software for any
  57. purpose. It is provided "as is" without express or implied warranty.
  58. .br
  59. No further copyright claims are being made by the author(s) of this utility.