← 返回命令列表

Linux command

named 命令

文本

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

常用示例

Start

named

Example

named -c [path/to/named.conf]

Example

named -4

Example

named -6

Example

named -p [port]

Example

named -f

说明

named is the DNS (Domain Name System) server daemon from BIND (Berkeley Internet Name Domain). It resolves domain names to IP addresses and vice versa, serving DNS queries from clients. The server reads zone files and configuration from /etc/named.conf by default. It can act as an authoritative server for domains, a recursive resolver, or both. The daemon typically runs as a system service managed by systemd.

参数

-4
Use IPv4 only, even if IPv6 is available
-6
Use IPv6 only, even if IPv4 is available
-c _config-file_
Use specified configuration file instead of /etc/named.conf
-p _port_
Listen on specified port instead of default 53
-f
Run in foreground; do not daemonize
-g
Run in foreground with logging to stderr
-u _user_
Run as specified user after binding to privileged ports
-t _directory_
Chroot to specified directory after startup
-n _cpus_
Number of CPUs to use for worker threads
-d _debug-level_
Set debug level (higher = more verbose)

FAQ

What is the named command used for?

named is the DNS (Domain Name System) server daemon from BIND (Berkeley Internet Name Domain). It resolves domain names to IP addresses and vice versa, serving DNS queries from clients. The server reads zone files and configuration from /etc/named.conf by default. It can act as an authoritative server for domains, a recursive resolver, or both. The daemon typically runs as a system service managed by systemd.

How do I run a basic named example?

Run `named` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -4 do in named?

Use IPv4 only, even if IPv6 is available