Automic VaultAutomic Vault

brew

Install c-ares with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Asynchronous DNS library. Version 1.34.8 via Homebrew; verified 2026-07-08.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install c-ares

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install c-ares

MacPorts ports tree · net/c-ares/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add c-ares

Alpine Linux edge package indexes · c-ares · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install libc-ares-dev

Debian stable package indexes · libc-ares-dev · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install c-ares

Fedora Rawhide package metadata · c-ares · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#c-ares

nixpkgs package indexes · pkgs/by-name/c-/c-ares/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S c-ares

Arch Linux sync databases · c-ares · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install c-ares-devel

openSUSE Tumbleweed package metadata · c-ares-devel · source: download.opensuse.org

overview

Package summary

Asynchronous DNS library

Commands and aliases

  • adig
  • ahost

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • Early 2000s: Daniel Stenberg searches for an asynchronous DNS resolver for libcurl and forks from ares to create c-ares.
  • 2004: Early tags such as `c-ares-1_2_0` appear in the upstream repository history.
  • 2010s: c-ares remains a common packaged dependency for asynchronous DNS in C networking software.
  • 2024: The project site describes more than 20 years of active maintenance and modern DNS RFC support.
  • 2025: The official site publishes c-ares 1.34.6 as a signed release with release provenance.

Related projects

  • libcurl is the motivating user described by the official history page.
  • ares is the older resolver library from which c-ares forked.
  • ADNS, UDNS, FireDNS, Mozilla netlib, djbdns, and other resolver libraries are discussed by the c-ares project as alternatives or contemporaries.

security posture

Risk level: blue

broad file, network, media, or database tool signal.

Risk classifier

blue risk · medium confidence · tool

Why

  • broad file, network, media, or database tool signal

Signals

  • text:sync

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
/etc/resolv.conf/etc/hosts

executables

Installed executables

CommandKindExposureNote
adigcliglobal executable
ahostcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version1.34.8
manager updated2026-07-08
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/c-ares/c-ares

install metadata

Package metadata

Package keybrew:c-ares
Version1.34.8
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/c-ares
Homepagehttps://c-ares.org/
Repositoryhttps://github.com/c-ares/c-ares
Upstream docshttps://c-ares.org/docs.html
LicenseMIT
Source archivehttps://github.com/c-ares/c-ares/releases/download/v1.34.8/c-ares-1.34.8.tar.gz
Last updated2026-07-08T02:31:43Z
Pulseupdated
Build dependenciescmake
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namec-ares
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

libc-ares-dev 1.34.5-1+deb13u1

asynchronous name resolver - development files

https://c-ares.org/

sudo apt install libc-ares-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: c-ares
  • 1 dependencies
  • normalized package name match
  • Matched by: C Ares
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libc-ares-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libc-ares2 1.34.5-1+deb13u1

transitional package

https://c-ares.org/

sudo apt install libc-ares2
  • Section: oldlibs
  • Architecture: all
  • Source Package: c-ares
  • 1 dependencies
  • normalized package name match
  • Matched by: C Ares
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libc-ares2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libcares2 1.34.5-1+deb13u1

asynchronous name resolver

https://c-ares.org/

sudo apt install libcares2
  • Section: libs
  • Architecture: amd64
  • Source Package: c-ares
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: C Ares
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libcares2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

c-ares

nix profile install nixpkgs#c-ares
  • normalized package name match
  • Matched by: C Ares
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/c-/c-ares/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libc-ares-dev 1.27.0-1.0ubuntu1

asynchronous name resolver - development files

https://c-ares.org/

sudo apt install libc-ares-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: c-ares
  • 1 dependencies
  • normalized package name match
  • Matched by: C Ares
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libc-ares-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libcares2 1.27.0-1.0ubuntu1

asynchronous name resolver

https://c-ares.org/

sudo apt install libcares2
  • Section: libs
  • Architecture: amd64
  • Source Package: c-ares
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: C Ares
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libcares2 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

c-ares 1.34.6-r0

Asynchronous DNS/names resolver library

https://c-ares.org/

sudo apk add c-ares
  • License: MIT
  • Architecture: x86_64
  • Source Package: c-ares
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: C Ares
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: c-ares from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

c-ares-dev 1.34.6-r0

Asynchronous DNS/names resolver library (development files)

https://c-ares.org/

sudo apk add c-ares-dev
  • License: MIT
  • Architecture: x86_64
  • Source Package: c-ares
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: C Ares
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: c-ares-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

c-ares-doc 1.34.6-r0

Asynchronous DNS/names resolver library (documentation)

https://c-ares.org/

sudo apk add c-ares-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: c-ares
  • normalized package name match
  • Matched by: C Ares
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: c-ares-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

c-ares-utils 1.34.6-r0

Asynchronous DNS/names resolver library

https://c-ares.org/

sudo apk add c-ares-utils
  • License: MIT
  • Architecture: x86_64
  • Source Package: c-ares
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: C Ares
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: c-ares-utils from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

c-ares 1.34.6-3.fc44

A library that performs asynchronous DNS operations

http://c-ares.org/

sudo dnf install c-ares
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: c-ares
  • 2 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: C Ares
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: c-ares from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

c-ares-devel 1.34.6-3.fc44

Development files for c-ares

http://c-ares.org/

sudo dnf install c-ares-devel
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: c-ares
  • 4 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: C Ares
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: c-ares-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

c-ares 1.34.6-1

A C library for asynchronous DNS requests

https://c-ares.org/

sudo pacman -S c-ares
  • License: MIT
  • Architecture: x86_64
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: C Ares
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: c-ares from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

c-ares-devel 1.34.6-1.3

Development files for c-ares

https://c-ares.org/

sudo zypper install c-ares-devel
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: c-ares
  • 3 dependencies
  • 4 provides
  • normalized package name match
  • Matched by: C Ares
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: c-ares-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

c-ares-utils 1.34.6-1.3

Tools for asynchronous name resolves

https://c-ares.org/

sudo zypper install c-ares-utils
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: c-ares
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: C Ares
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: c-ares-utils from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libcares2 1.34.6-1.3

Library for asynchronous name resolves

https://c-ares.org/

sudo zypper install libcares2
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: c-ares
  • 4 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: C Ares
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libcares2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment