# 使用 Homebrew, apk, Nix, zypper, scoop 安装 coredns

查看 coredns 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:coredns
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install coredns
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add coredns
```

  证据: Alpine Linux edge package indexes: coredns from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#coredns
```

  证据: nixpkgs package indexes: pkgs/by-name/co/coredns/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install coredns
```

  证据: openSUSE Tumbleweed package metadata: coredns from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/coredns
```

  证据: Scoop official bucket manifest trees: bucket/coredns.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:coredns
- **软件包管理器:** Homebrew
- **版本:** 1.14.6
- **来源摘要:** DNS server that chains plugins
- **主页:** <https://coredns.io/>
- **仓库:** <https://github.com/coredns/coredns>
- **最后更新:** 2026-07-10T07:03:58Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- coredns (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.14.6
## 项目历史与用法

CoreDNS is a Go DNS server built around a plugin chain. It became significant not only as a flexible DNS daemon, but as cloud-native infrastructure: a CNCF graduated project and the default DNS service for Kubernetes clusters.

### 项目历史

The coredns/coredns repository was created in 2016. The official README describes CoreDNS as a DNS server and forwarder, written in Go, where each plugin performs a DNS function and the server chains those plugins.

CoreDNS joined the Cloud Native Computing Foundation ecosystem and graduated in January 2019. CNCF described it as a fast-growing DNS server and the official default DNS for Kubernetes.

### 采用历史

CoreDNS adoption accelerated through Kubernetes service discovery. The project's Kubernetes plugin and its selection as Kubernetes's default DNS made the coredns binary part of ordinary cluster bootstrapping, not just a standalone DNS-server choice.

Outside Kubernetes, CoreDNS is used as a configurable DNS forwarder, authoritative or secondary server, DNS-over-TLS/HTTPS/QUIC endpoint, service-discovery component, and plugin platform.

### 使用方式

CoreDNS is configured with a Corefile, where server blocks and plugin directives define zones, forwarding, caching, Kubernetes integration, logging, metrics, and other DNS behaviors. The plugin model lets distributions choose a compiled-in plugin set and lets operators reason about behavior from the Corefile.

### 为什么软件包爱好者会关心

CoreDNS matters to package history because it is a small single binary that became cluster-critical infrastructure. Packaging has to track Go versions, plugin availability, Corefile examples, service unit integration, and Kubernetes defaults rather than only the upstream executable.

### 时间线

- 2016: coredns/coredns repository created.
- 2017: CoreDNS documented Kubernetes service discovery support on the official project site.
- 2019-01-24: CNCF announced CoreDNS graduation.
- 2026: v1.14.x releases show continued active upstream maintenance.

### Related projects

- CoreDNS is related to Kubernetes DNS service discovery, SkyDNS-era service-discovery patterns, DNS plugins, and cloud-native observability systems such as Prometheus.

### 来源

- <https://github.com/coredns/coredns>
- <https://github.com/coredns/coredns#readme>
- <https://coredns.io/manual/toc>
- <https://coredns.io/plugins/>
- <https://coredns.io/2017/03/01/coredns-for-kubernetes-service-discovery-take-2/>
- <https://www.cncf.io/announcements/2019/01/24/coredns-graduation/>


## 安全说明

broad file, network, media, or database tool signal. formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- formula declares a Homebrew service


## 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

- Unix: Corefile
## 其他软件包管理器记录

- Nix - coredns: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/coredns/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - coredns - 1.13.2-r6: normalized package name match | Alpine Linux edge package indexes: coredns from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | fast and flexible DNS server | https://github.com/coredns/coredns
- apk - coredns-openrc - 1.13.2-r6: normalized package name match | Alpine Linux edge package indexes: coredns-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | fast and flexible DNS server (OpenRC init scripts) | https://github.com/coredns/coredns
- zypper - coredns - 1.14.6-1.2: normalized package name match | openSUSE Tumbleweed package metadata: coredns from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | DNS server written in Go | https://coredns.io
- zypper - coredns-extras - 1.14.6-1.2: normalized package name match | openSUSE Tumbleweed package metadata: coredns-extras from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Extra components for the coredns package | https://coredns.io
- Scoop - main/coredns: normalized package name match | Scoop official bucket manifest trees: bucket/coredns.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/coredns.yml](https://github.com/mxcl/pkgdb/blob/main/combined/coredns.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
