README 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. This is c-ares, a forked version of the original ares. The original ares
  2. README follows below, the c-ares specific details are in README.cares
  3. ====================================================================
  4. This is ares, an asynchronous resolver library. It is intended for
  5. applications which need to perform DNS queries without blocking, or
  6. need to perform multiple DNS queries in parallel. The primary
  7. examples of such applications are servers which communicate with
  8. multiple clients and programs with graphical user interfaces.
  9. This library implementation is not especially portable to crufty old
  10. systems like SunOS 4. It assumes a compiler which can handle ANSI C
  11. syntax, a system malloc which properly handles realloc(NULL, foo) and
  12. free(NULL), and a reasonably up-to-date <arpa/nameser.h>.
  13. I have attempted to preserve the externally visible behavior of the
  14. BIND resolver in nearly all respects. The API of the library is, of
  15. course, very different from the synchronous BIND API; instead of
  16. invoking a function like res_send() and getting a return value back
  17. indicating the number of bytes in the response, you invoke a function
  18. like ares_send() and give it a callback function to invoke when the
  19. response arrives. You then have to select() on the file descriptors
  20. indicated by ares_fds(), with a timeout given by ares_timeout(). You
  21. call ares_process() when select() returns.
  22. Some features are missing from the current version of ares, relative
  23. to the BIND resolver:
  24. * There is no IPV6 support. [not true for c-ares]
  25. * There is no hostname verification.
  26. * There is no logging of unexpected events.
  27. * There is no debugging-oriented logging.
  28. * There is no YP support.
  29. libares requires an ANSI compiler to compile and use. To build the
  30. library, just run "./configure" and "make". To install it, run "make
  31. install". Run "./configure --help" to see a list of options you can
  32. provide to configure to change how the library builds. libares has no
  33. data files, so you can move the include file and library around freely
  34. without leaving behind any dependencies on old paths. Building the
  35. library will also build the "adig" program, a little toy for trying
  36. out the library. It doesn't get installed.
  37. libares is distributed at athena-dist.mit.edu:pub/ATHENA/ares. Please
  38. send bug reports and comments to ghudson@mit.edu.