# Advertise a web pages being served by http server on port 80 on the computer doing the advertising. dns-sd -R "My Test" _http._tcp . 80 path=/path-to-page.html # Find all advertised web pages on the local network. dns-sd -B _http._tcp # Advertise a website, www.apple.com, as a service called apple, running on a host apple.local, which resolvesto 17.149.160.49 dns-sd -P apple _http._tcp "" 80 apple.local 17.149.160.49 # Query for a unicast name and monitor its status. dns-sd -q www.apple.com