← 返回命令列表

Linux command

unbound-control 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Check server status

unbound-control status

View statistics

unbound-control stats

Reload configuration

unbound-control reload

Flush entire cache

unbound-control flush_zone [.]

Flush specific domain

unbound-control flush [example.com]

Add local zone

unbound-control local_zone [example.com] [static]

Add local data

unbound-control local_data "[example.com. A 192.168.1.1]"

List forward zones

unbound-control list_forwards

说明

unbound-control is a utility for managing the Unbound DNS resolver daemon. It communicates with a running unbound server over a secure channel using TLS certificates. Before use, run unbound-control-setup to generate the required certificates and keys. The remote-control section must be enabled in unbound.conf. The tool enables runtime configuration changes including cache management, adding local zones and data, and modifying forwarding without restarting the server.

参数

-c _file_
Configuration file path.
-s _server_
Server address to connect to.
-q
Quiet mode.
-h
Display help.

FAQ

What is the unbound-control command used for?

unbound-control is a utility for managing the Unbound DNS resolver daemon. It communicates with a running unbound server over a secure channel using TLS certificates. Before use, run unbound-control-setup to generate the required certificates and keys. The remote-control section must be enabled in unbound.conf. The tool enables runtime configuration changes including cache management, adding local zones and data, and modifying forwarding without restarting the server.

How do I run a basic unbound-control example?

Run `unbound-control status` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c _file_ do in unbound-control?

Configuration file path.