tldr/pages.zh/linux/avahi-browse.md

18 lines
483 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# avahi-browse
> 显示通过 mDNS/DNS-SD 暴露在本地网络的服务和主机。
> Avahi 与苹果设备的 BonjourZeroconf兼容。
> 更多信息:<https://www.avahi.org/>.
- 列出本地网络中的所有服务和他们的地址与端口,忽略他们本地的地址和端口:
`avahi-browse --all --resolve --ignore-local`
- 列出所有的域名:
`avahi-browse --browse-domains`
- 只搜索一个特定的域名:
`avahi-browse --all --domain={{domain}}`