macOS
brew install c-areslocal Homebrew formula metadata
sudo port install c-aresMacPorts ports tree · net/c-ares/Portfile · ソース: api.github.com
brew
c-ares のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install c-areslocal Homebrew formula metadata
sudo port install c-aresMacPorts ports tree · net/c-ares/Portfile · ソース: api.github.com
sudo apk add c-aresAlpine Linux edge package indexes · c-ares · ソース: dl-cdn.alpinelinux.org
sudo dnf install c-aresFedora Rawhide package metadata · c-ares · ソース: dl.fedoraproject.org
nix profile install nixpkgs#c-aresnixpkgs package indexes · pkgs/by-name/c-/c-ares/package.nix · ソース: api.github.com
sudo pacman -S c-aresArch Linux sync databases · c-ares · ソース: geo.mirror.pkgbuild.com
sudo apt install libc-ares-devDebian stable package indexes · libc-ares-dev · ソース: deb.debian.org
sudo zypper install c-ares-developenSUSE Tumbleweed package metadata · c-ares-devel · ソース: download.opensuse.org
概要
Asynchronous DNS library
履歴
c-ares is an MIT-licensed C library for asynchronous DNS resolution. It grew out of Daniel Stenberg's search for a non-blocking resolver suitable for libcurl and became a long-lived dependency for network software that cannot afford blocking name lookups.
The official `why` page explains that Daniel Stenberg looked for an asynchronous DNS resolver for libcurl, found the older ares library, began expanding it, and forked when the original author would not accept the needed changes. That fork became c-ares.
The project still acknowledges ares as the public API influence while noting that the code no longer closely resembles the original. Its README now describes c-ares as a modern DNS stub resolver written in C with asynchronous interfaces, portability across Unix, Windows, mobile, and other systems, and active maintenance after more than 20 years.
Recent project materials emphasize security practice as much as asynchronous lookup: safe parsers and builders, static and dynamic analysis, OSS-Fuzz coverage, signed releases, and SLSA provenance for release artifacts.
c-ares adoption started from libcurl's need for DNS lookups that could integrate with event-driven network code. From there it spread into software that needs many DNS queries in parallel or wants resolver behavior independent from a platform's blocking libc calls.
Its package-manager footprint is broad: Homebrew, Debian and Ubuntu development packages, Fedora, Alpine, Arch, MacPorts, Nix, and openSUSE all package it. That breadth reflects its status as a library dependency more than an end-user command, although tools such as `adig` and `ahost` are installed with some packages.
Developers link against c-ares to issue asynchronous DNS queries through non-blocking sockets and integrate DNS work into event loops. The official docs include initialization APIs such as `ares_init_options` and resolver configuration behavior.
On Unix-like systems c-ares reads resolver environment from standard system files such as `/etc/resolv.conf` and `/etc/hosts`, matching the package's curated config-file locations.
c-ares is one of those packages users may never invoke directly but build systems constantly care about. It is a small C library whose ABI, headers, pkg-config metadata, and security updates affect curl-like networking stacks across distributions.
For package nerds, it is also a clean example of a library fork becoming infrastructure: born from a specific libcurl need, preserved for API/ABI stability, and now maintained with modern supply-chain signals such as signed releases and SLSA provenance.
セキュリティ状態
broad file, network, media, or database tool signal.
リスク blue · 信頼度 中 · tool
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
/etc/resolv.conf/etc/hosts実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
adig | cli | グローバル実行可能ファイル | |
ahost | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/c-ares/c-ares
インストールメタデータ
| パッケージキー | brew:c-ares |
|---|---|
| バージョン | 1.34.8 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/c-ares |
| ホームページ | https://c-ares.org/ |
| リポジトリ | https://github.com/c-ares/c-ares |
| 上流ドキュメント | https://c-ares.org/docs.html |
| ライセンス | MIT |
| ソースアーカイブ | https://github.com/c-ares/c-ares/releases/download/v1.34.8/c-ares-1.34.8.tar.gz |
| 最終更新 | 2026-07-08T02:31:43Z |
| Pulse | updated |
| ビルド依存関係 | cmake |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | c-ares |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
libc-ares-dev 1.34.5-1+deb13u1
asynchronous name resolver - development files
sudo apt install libc-ares-devlibc-ares2 1.34.5-1+deb13u1
transitional package
sudo apt install libc-ares2libcares2 1.34.5-1+deb13u1
asynchronous name resolver
sudo apt install libcares2c-ares
nix profile install nixpkgs#c-areslibc-ares-dev 1.27.0-1.0ubuntu1
asynchronous name resolver - development files
sudo apt install libc-ares-devlibcares2 1.27.0-1.0ubuntu1
asynchronous name resolver
sudo apt install libcares2c-ares 1.34.6-r0
Asynchronous DNS/names resolver library
sudo apk add c-aresc-ares-dev 1.34.6-r0
Asynchronous DNS/names resolver library (development files)
sudo apk add c-ares-devc-ares-doc 1.34.6-r0
Asynchronous DNS/names resolver library (documentation)
sudo apk add c-ares-docc-ares-utils 1.34.6-r0
Asynchronous DNS/names resolver library
sudo apk add c-ares-utilsc-ares 1.34.6-3.fc44
A library that performs asynchronous DNS operations
sudo dnf install c-aresc-ares-devel 1.34.6-3.fc44
Development files for c-ares
sudo dnf install c-ares-develc-ares 1.34.6-1
A C library for asynchronous DNS requests
sudo pacman -S c-aresc-ares-devel 1.34.6-1.3
Development files for c-ares
sudo zypper install c-ares-develc-ares-utils 1.34.6-1.3
Tools for asynchronous name resolves
sudo zypper install c-ares-utilslibcares2 1.34.6-1.3
Library for asynchronous name resolves
sudo zypper install libcares2ソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.