A C library for asynchronous DNS requests (grpc依赖)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Brad House 85fe3d5a73 remove accidentally committed in-development file 6 months ago
.github CI: Add Netbsd workflow (#756) 7 months ago
.reuse Apple: reimplement DNS configuration reading (#750) 7 months ago
LICENSES Apple: reimplement DNS configuration reading (#750) 7 months ago
ci Autotools: rework to simplify and fix recent issues (#674) 11 months ago
cmake
docs add missing copyrights 7 months ago
include Add observability into DNS server health via a server state callback, invoked whenever a query finishes (#744) 7 months ago
m4 Autotools: rework to simplify and fix recent issues (#674) 11 months ago
src remove accidentally committed in-development file 6 months ago
test Add observability into DNS server health via a server state callback, invoked whenever a query finishes (#744) 7 months ago
.cirrus.yml skip ubsan/asan on debian arm64 due to the compiler getting killed 9 months ago
.clang-format
.gitattributes
.gitignore
.travis.yml
AUTHORS
CHANGES
CHANGES.0 Fix typos discovered by codespell (#634) 1 year ago
CMakeLists.txt Apple: reimplement DNS configuration reading (#750) 7 months ago
CONTRIBUTING.md
GIT-INFO
INSTALL.md Fix minor warnings and documentation typos (#666) 11 months ago
LICENSE.md
Makefile.Watcom set winver consistently across build systems 11 months ago
Makefile.am RELEASE-NOTES -> RELEASE-NOTES.md 11 months ago
Makefile.dj
Makefile.m32
Makefile.msvc mark deprecated functions as such (#732) 8 months ago
Makefile.netware Fix typos discovered by codespell (#634) 1 year ago
NEWS
README.cares
README.md badge should be only main branch 9 months ago
README.msvc
RELEASE-NOTES.md release prep for 1.28.1 (#739) 8 months ago
RELEASE-PROCEDURE.md
SECURITY.md Use gender-neutral language in SECURITY.md (#746) 7 months ago
TODO
appveyor.yml appveyor: disable UWP builds until MSVC version is updated in base image 8 months ago
buildconf
buildconf.bat
c-ares-config.cmake.in
configure.ac Apple: reimplement DNS configuration reading (#750) 7 months ago
get_ver.awk
git2changes.pl
libcares.pc.cmake Autotools: rework to simplify and fix recent issues (#674) 11 months ago
libcares.pc.in attempt to fix pkgconfig on windows for static builds 10 months ago
maketgz Fix typos discovered by codespell (#634) 1 year ago
msvc_ver.inc
sonar-project.properties

README.md

c-ares logo

Build Status Windows Build Status Coverage Status CII Best Practices Fuzzing Status Bugs Coverity Scan Status

This is c-ares, an asynchronous resolver library. It is intended for applications which need to perform DNS queries without blocking, or need to perform multiple DNS queries in parallel. The primary examples of such applications are servers which communicate with multiple clients and programs with graphical user interfaces.

The full source code is available in the 'c-ares' release archives, and in a git repository: https://github.com/c-ares/c-ares. See the INSTALL.md file for build information.

If you find bugs, correct flaws, have questions or have comments in general in regard to c-ares (or by all means the original ares too), get in touch with us on the c-ares mailing list: https://lists.haxx.se/listinfo/c-ares

c-ares is distributed under the MIT license.

You'll find all c-ares details and news here: https://c-ares.org/

Notes for c-ares hackers

  • The distributed ares_build.h file is only intended to be used on systems which can not run the also distributed configure script.

  • The distributed ares_build.h file is generated as a copy of ares_build.h.dist when the c-ares source code distribution archive file is originally created.

  • If you check out from git on a non-configure platform, you must run the appropriate buildconf* script to set up ares_build.h and other local files before being able to compile the library.

  • On systems capable of running the configure script, the configure process will overwrite the distributed ares_build.h file with one that is suitable and specific to the library being configured and built, this new file is generated from the ares_build.h.in template file.

  • If you intend to distribute an already compiled c-ares library you MUST also distribute along with it the generated ares_build.h which has been used to compile it. Otherwise, the library will be of no use for the users of the library that you have built. It is your responsibility to provide this file. No one at the c-ares project can know how you have built the library.

  • File ares_build.h includes platform and configuration dependent info, and must not be modified by anyone. Configure script generates it for you.

  • We cannot assume anything else but very basic compiler features being present. While c-ares requires an ANSI C compiler to build, some of the earlier ANSI compilers clearly can't deal with some preprocessor operators.

  • Newlines must remain unix-style for older compilers' sake.

  • Comments must be written in the old-style /* unnested C-fashion */

  • Try to keep line lengths below 80 columns.