/usr/bin/dns-sd
The dns-sd command is a network diagnostic tool, much like ping or traceroute. However, unlike those tools, most of its functionality is not implemented in the dns-sd executable itself, but in library code that is available to any application. The dns-sd command is primarily intended for interactive use. Because its command-line arguments and output format are subject to change, invoking it from a shell script will generally be fragile.