Name
mDNS
Synopsis
mDNS [-E | -F | -A | -U | -N | -T | -M] mDNS -Btype domain
mDNS -Lservice_name
_app_protocol
._transport_protocol domain
mDNS -Rservice_name
_app_protocol
._transport_protocol domain port
[string
] . . .
Description
A basic client for Rendezvous multicast DNS (mDNS), primarily used for testing local mDNS service. When invoked with no arguments, it prints a usage statement to standard error. In most instances, the command doesn’t return on its own, so you’ll need to use Ctrl-C to break out.
When registering or looking up a name like
website._http._tcp.local.
,
website
is the
service_name
, http
is
the app_protocol
, tcp
is the transport_protocol
, and
local
is the domain
.
For example, to register such a service:
% mDNS -R website _http._tcp local 80 "my web site"
Options/Usage
- -A
Tests mDNS by repeatedly adding, updating, and then deleting an HINFO resource record for
Test._testupdate._tcp.local.
.- -B
Browses for services (although this doesn’t seem to work).
- -E
Discovers and lists domains recommended for registration of services.
- -F
Discovers and lists domains recommended for browsing of services.
- -L
Looks up a service, displaying its host address, port number, and TXT records if found.
- -M
Tests mDNS by registering a service (
Test._testdualtxt._tcp.local.
) with multiple TXT resource records.- -N
Tests mDNS by registering a service (
Test._testupdate._tcp.local.
) with a large NULL resource record.- -R
Registers a service.
- -T
Tests mDNS by registering a service (
Test._testlargetxt._tcp.local.
Get Mac OS X Panther for Unix Geeks, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.