← 返回命令列表

Linux command

avahi-browse-domains 命令

文本

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

常用示例

Browse

avahi-browse-domains

Browse

avahi-browse-domains --verbose

Terminate

avahi-browse-domains --terminate

Browse

avahi-browse-domains --domain=[domain_name]

Parsable output

avahi-browse-domains --parsable

Ignore local

avahi-browse-domains --ignore-local

说明

avahi-browse-domains browses for mDNS/DNS-SD browsing domains on the local network using the Avahi daemon. This command is equivalent to avahi-browse --browse-domains and provides a convenient shortcut for discovering available browsing domains. The tool connects to the Avahi daemon and displays browsing domains as they appear on the network. Network items appearing are shown with a "+" prefix, disappearing items use "-", and resolved items display with "=" when the resolve flag is enabled. By default, avahi-browse-domains searches in the local domain, but can be configured to search in other domains using the --domain option. The output can be formatted for easy parsing in scripts using the --parsable option, which separates fields with semicolons. The tool runs continuously by default, monitoring for domain changes. Use --terminate to exit after displaying the initial complete list, or --cache to dump only cached entries and exit immediately.

参数

-d, --domain=_DOMAIN_
Specify search domain (defaults to local)
-v, --verbose
Enable verbose output with detailed information
-t, --terminate
Exit after displaying a complete list of domains
-c, --cache
Exit after dumping all cached entries
-l, --ignore-local
Show only remote services, exclude local ones
-r, --resolve
Automatically resolve discovered services
-f, --no-fail
Wait for daemon if unavailable; reconnect if disconnected
-p, --parsable
Format output for script usage (semicolon-separated fields, escaped service names)
-k, --no-db-lookup
Skip service type database lookups
-h, --help
Display help information
-V, --version
Show version details

FAQ

What is the avahi-browse-domains command used for?

avahi-browse-domains browses for mDNS/DNS-SD browsing domains on the local network using the Avahi daemon. This command is equivalent to avahi-browse --browse-domains and provides a convenient shortcut for discovering available browsing domains. The tool connects to the Avahi daemon and displays browsing domains as they appear on the network. Network items appearing are shown with a "+" prefix, disappearing items use "-", and resolved items display with "=" when the resolve flag is enabled. By default, avahi-browse-domains searches in the local domain, but can be configured to search in other domains using the --domain option. The output can be formatted for easy parsing in scripts using the --parsable option, which separates fields with semicolons. The tool runs continuously by default, monitoring for domain changes. Use --terminate to exit after displaying the initial complete list, or --cache to dump only cached entries and exit immediately.

How do I run a basic avahi-browse-domains example?

Run `avahi-browse-domains` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d, --domain=_DOMAIN_ do in avahi-browse-domains?

Specify search domain (defaults to local)