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 3429263560 update base README 6 months ago
.github update sonarcloud build commands as per docs 6 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 win32 warnings look good, remove commented out block 1 year ago
docs Basic support for SIG RR record (RFC 2931 / RFC 2535) (#773) 6 months ago
include Basic support for SIG RR record (RFC 2931 / RFC 2535) (#773) 6 months ago
m4 Autotools: rework to simplify and fix recent issues (#674) 11 months ago
src Basic support for SIG RR record (RFC 2931 / RFC 2535) (#773) 6 months ago
test Basic support for SIG RR record (RFC 2931 / RFC 2535) (#773) 6 months ago
.cirrus.yml CI: MacOS fix 6 months ago
.clang-format clang-format: fix structure alignment 1 year ago
.gitattributes recursive git attributes 1 year ago
.gitignore Watcom Portability Improvements (#509) 2 years ago
.travis.yml provide SPDX identifiers and a REUSE CI job to verify 1 year ago
AUTHORS Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
CHANGES Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
CHANGES.0 Fix typos discovered by codespell (#634) 1 year ago
CMakeLists.txt 1.29.0 release prep (#762) 6 months ago
CONTRIBUTING.md update base README 6 months ago
DEVELOPER-NOTES.md update base README 6 months ago
GIT-INFO Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
INSTALL.md Fix minor warnings and documentation typos (#666) 11 months ago
LICENSE.md force preservation of newline in license 6 months ago
Makefile.Watcom set winver consistently across build systems 11 months ago
Makefile.am update base README 6 months ago
Makefile.dj remove acountry from built tools as nerd.dk is gone (#554) 1 year ago
Makefile.m32 make dns parser/writer public (#604) 1 year ago
Makefile.msvc mark deprecated functions as such (#732) 8 months ago
Makefile.netware Fix typos discovered by codespell (#634) 1 year ago
NEWS Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
README.cares domain: update to use c-ares.org 3 years ago
README.md update base README 6 months ago
README.msvc remove acountry from built tools as nerd.dk is gone (#554) 1 year ago
RELEASE-NOTES.md 1.29.0 release prep (#762) 6 months ago
RELEASE-PROCEDURE.md update version and release procedure 2 years ago
SECURITY.md Use gender-neutral language in SECURITY.md (#746) 7 months ago
TODO Implement ares_reinit() to reload system configuration into existing channel (#614) 1 year ago
appveyor.yml appveyor: disable UWP builds until MSVC version is updated in base image 8 months ago
buildconf provide SPDX identifiers and a REUSE CI job to verify 1 year ago
buildconf.bat provide SPDX identifiers and a REUSE CI job to verify 1 year ago
c-ares-config.cmake.in provide SPDX identifiers and a REUSE CI job to verify 1 year ago
configure.ac 1.29.0 release prep (#762) 6 months ago
get_ver.awk provide SPDX identifiers and a REUSE CI job to verify 1 year ago
git2changes.pl provide SPDX identifiers and a REUSE CI job to verify 1 year ago
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 provide SPDX identifiers and a REUSE CI job to verify 1 year ago
sonar-project.properties SonarCloud: Fix additional code smells 1 year ago

README.md

c-ares logo

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

Overview

c-ares is a modern DNS (stub) resolver library, written in C. It provides interfaces for asynchronous queries while trying to abstract the intricacies of the underlying DNS protocol. It was originally intended for applications which need to perform DNS queries without blocking, or need to perform multiple DNS queries in parallel.

One of the goals of c-ares is to be a better DNS resolver than is provided by your system, regardless of which system you use. We recommend using the c-ares library in all network applications even if the initial goal of asynchronous resolution is not necessary to your application.

c-ares will build with any C89 compiler, is MIT licensed, which makes it suitable for both free and commercial software. c-ares runs on Linux, FreeBSD, OpenBSD, MacOS, Solaris, AIX, Windows, Android, iOS and many more operating systems.

c-ares has a strong focus on security, implementing safe parsers and data builders used throughout the code, thus avoiding many of the common pitfalls of other C libraries. Through automated testing with our extensive testing framework, c-ares is constantly validated with a range of static and dynamic analyzers, as well as being constantly fuzzed by OSS Fuzz.

While c-ares has been around for over 20 years, it has been actively maintained both in regards to the latest DNS RFCs as well as updated to follow the latest best practices in regards to C coding standards.

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.

Code

The full source code and revision history is available in our GitHub repository. Our signed releases are available in the 'c-ares' release archives.

See the INSTALL.md file for build information.

Communication

Issues and Feature Requests should be reported to our GitHub Issues page.

Discussions around c-ares and its use, are held on GitHub Discussions or the Mailing List. Mailing List archive here. Please, do not mail volunteers privately about c-ares.

Security vulnerabilities are treated according to our Security Procedure, please email c-ares-security at haxx.se if you suspect one.