> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/man/man5/networks.5.md).

# networks.5

`networks` — 网络名数据库

## 名称

`networks`

## 描述

`networks` 文件包含有关组成 DARPA Internet 的已知网络的信息。对于每个网络，应有如下信息占据一行：

```sh
official network name
network number
aliases
```

各项之间以任意数量的空格和/或制表符分隔。“`#`” 表示注释的开始；从该字符到行尾的内容不会被搜索该文件的例程所解释。此文件通常根据网络信息控制中心（NIC）维护的官方网络数据库创建，但可能需要进行本地修改以更新有关非官方别名和/或未知网络的信息。

网络号可以使用 Internet 地址操作库 inet(3) 中的 inet\_network(3) 例程，以传统的 “`.`”（点）表示法指定。网络名可以包含除字段分隔符、换行符或注释字符以外的任何可打印字符。

## 文件

**/etc/networks** `networks` 文件位于 **/etc**。

## 参见

getnetent(3)

## 历史

`networks` 文件格式出现于 4.2BSD。

## 缺陷

应当使用域名服务器代替静态文件。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.bsdcn.org/man/man5/networks.5.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
