LinuxCommandLibrary

avahi-browse

Browse for mDNS/DNS-SD network services

TLDR

List services with addresses

$ avahi-browse -a -r -l
copy
List for scripts (parsable)
$ avahi-browse -a -t -p
copy
List domains
$ avahi-browse -D
copy
Search specific domain
$ avahi-browse -a --domain=example.local
copy

SYNOPSIS

avahi-browse [OPTIONS] [SERVICE-TYPE]

DESCRIPTION

avahi-browse displays services and hosts exposed on the local network via mDNS/DNS-SD (Multicast DNS Service Discovery). It is compatible with Apple's Bonjour/Zeroconf protocol.
By default, the tool runs continuously and displays services as they appear or disappear on the network, prefixed with "+" for new and "-" for removed entries. When used with --resolve, it also looks up hostnames and port numbers for discovered services. The --terminate flag causes it to exit after dumping all currently known services, which is useful for scripting.

PARAMETERS

-a, --all

Show all services
-r, --resolve
Resolve discovered services to addresses and ports
-l, --ignore-local
Ignore services on the local machine
-t, --terminate
Terminate after dumping a list (don't wait for more)
-p, --parsable
Output in parsable format for scripts
-D, --browse-domains
Browse for domains instead of services
--domain domain
Limit search to a specific domain
-v, --verbose
Enable verbose output

CAVEATS

Requires the Avahi daemon to be running. Services must be advertised via mDNS to be discovered. Network configuration and firewall settings may affect discovery.

HISTORY

avahi-browse is part of the Avahi package, providing mDNS/DNS-SD service discovery on Linux, compatible with Apple's Bonjour.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community