# 使用 Homebrew, apt 安装 hesiod

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

## 安装

```sh
sudo av install brew:hesiod
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install hesiod
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install hesiod
```

  证据: Debian stable package indexes: hesiod from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## 软件包事实

- **软件包键:** brew:hesiod
- **软件包管理器:** Homebrew
- **版本:** 3.2.1
- **来源摘要:** Library for the simple string lookup service built on top of DNS
- **主页:** <https://github.com/achernya/hesiod>
- **仓库:** <https://github.com/achernya/hesiod>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- hesinfo (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Hesiod is a DNS-based name service from MIT Project Athena, packaged today as a small C library and `hesinfo`-style lookup tooling. Its historical importance is much larger than the modern package size: it represents an early Unix campus-computing approach to distributing user, group, mail, printer, service, and locker metadata through DNS.

### 项目历史

MIT's Athena Technical Plan lists the Hesiod Name Service section as July 22, 1987, by Steven P. Dyer and Felix S. Hsu. RFC 1035's bibliography references an April 1987 Project Athena Hesiod name-service document and notes that it describes the fundamentals of the Hesiod name service.

The MIT Athena description explains Hesiod as a simple string lookup service on top of DNS: a client combines a name and type into a DNS name such as `name.type.ns.athena.mit.edu`, queries TXT records, and receives one or more result strings.

The maintained GitHub package identifies itself as release 3.2.1 of the Hesiod name service library, says Hesiod can provide general name service for many applications, and notes its basis in the Berkeley Internet Name Daemon. The repository was created on March 28, 2013, preserving the library in a conventional autotools-style source tree.

### 采用历史

Hesiod's first adoption context was Project Athena, MIT's distributed workstation environment. MIT's own Athena overview says Athena used Hesiod for user account information, locker information, post office box information, workstation cluster information, and printer information.

The DNS protocol itself records Hesiod's historical footprint: IANA's DNS parameters registry assigns DNS class 4 to Hesiod (HS), citing the Project Athena name-service work. The modern library later moved its wire protocol toward class IN for deployability, but the HS class remains part of DNS history.

In package-manager terms, Hesiod survived as a niche but instructive Unix networking library. It appears in Homebrew, Debian, and Ubuntu not because most sites deploy it broadly, but because old Athena-style environments, compatibility code, and network-service historians still need a maintained implementation.

### 使用方式

The README documents client configuration through `hesiod.conf`, with `rhs` and `lhs` values that build the DNS lookup suffix. It notes `/usr/local/etc/hesiod.conf` as the default sysconfdir path in that build configuration and explains that `HES_DOMAIN` can override the right-hand side at run time.

Administrators publish Hesiod data by making name servers authoritative for a domain such as `ns.your.domain` and adding TXT and CNAME records for data types like groups, service locations, and IDs. Clients then use the library or utilities to translate `(name, type)` pairs into strings.

The library's NEWS file documents evolution from imake to Autoconf, reentrant interfaces, a context-based `hesiod_*` API, shared-library installation, Debian packaging, automake, pkg-config metadata, and relicensing MIT material under the 2-clause BSD license.

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

Hesiod is package-nerd catnip because it is a tiny package with a deep systems lineage. It shows how DNS was once stretched into campus directory service, before LDAP, NSS modules, cloud identity providers, and configuration-management systems took over many of the same roles.

It also demonstrates a recurring packaging theme: old infrastructure survives when a clean library, man pages, and distribution packaging keep it buildable. The Homebrew package is therefore less about trendy usage and more about preserving a historically important network abstraction in a form modern Unix systems can compile.

### 时间线

- 1987-04: RFC 1035 bibliography references Dyer and Hsu's Project Athena Hesiod name-service document.
- 1987-07-22: MIT Athena Technical Plan lists the Hesiod Name Service section by Steven P. Dyer and Felix S. Hsu.
- 1987-11: RFC 1035 assigned DNS class HS value 4 for Hesiod.
- 2013-03-28: `achernya/hesiod` repository creation date recorded by GitHub.
- 2018: Hesiod 3.2.1 NEWS documented pkg-config support and 2-clause BSD relicensing work.

### Related projects

- Project Athena siblings include Kerberos for authentication, Zephyr for notification, Moira/SMS for service management, and Athena locker/file-service infrastructure.
- DNS and BIND are the underlying transport and server infrastructure. LDAP, NIS, and NSS occupy related directory and name-service territory in Unix environments.

### 来源

- GitHub README and NEWS for maintained library behavior, configuration, and release evolution.
- MIT Athena Technical Plan and Athena overview for origin and production usage context.
- RFC 1035 and IANA DNS parameters for protocol-level Hesiod class history.


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - hesiod - 3.2.1-5: normalized package name match | Debian stable package indexes: hesiod from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Project Athena's DNS-based directory service - utilities
- Debian apt - libhesiod-dev - 3.2.1-5: normalized package name match | Debian stable package indexes: libhesiod-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Project Athena's DNS-based directory service - development files
- Debian apt - libhesiod0 - 3.2.1-5: normalized package name match | Debian stable package indexes: libhesiod0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Project Athena's DNS-based directory service - libraries
- Ubuntu apt - hesiod - 3.2.1-4build1: normalized package name match | Ubuntu 24.04 LTS package indexes: hesiod from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Project Athena's DNS-based directory service - utilities
- Ubuntu apt - libhesiod-dev - 3.2.1-4build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libhesiod-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Project Athena's DNS-based directory service - development files
- Ubuntu apt - libhesiod0 - 3.2.1-4build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libhesiod0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Project Athena's DNS-based directory service - libraries


## Combined YAML source

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


## 来源

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