GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MDNSCTL(8) FreeBSD System Manager's Manual MDNSCTL(8)

mdnsctl
control the Multicast Domain Server daemon

mdnsctl command [argument ...]

The mdnsctl program controls the mdnsd(8) daemon, it can perform simples MDNS lookups, as well as browsing and publishing MDNS/DNS-SD services.

The following commands are available:

[rr-types] host.local
Look up resource records for host.local. The optional rr-types specifies which type of resource record should be looked up. It can be any combination of the following:

A record (IPv4 Address). This is the default.
HINFO record (Host Information).
SRV record (Service). Unimplemented.
TXT record (Text). Unimplemented.
a.b.c.d
Reverse lookup an IPv4 address in the a.b.c.d form, use this to obtain the hostname of the given address.
[-r] [-s] [application proto]
Browse for application services of type application for the given transport protocol proto. application may be any application service type, like http, workstation, ftp, printer... proto must be either tcp or udp. Defaults to all services if none specified.
service-name application proto port text-string
Publish services via dns-sd, service-name is the unique chosen name for the service, it can be any string up to 63 characters. The application is the application protocol for the service, like http, ftp... proto is the transport protocol, must be either tcp or udp. port is the tcp or udp port. text-string is the string in the TXT record for the given service, it can be used to express additional service information.
service-name application proto port host address text-string
Proxy publish a service running on a different machine, in addition to the arguments used for publish, host is a fully qualified domain name (FQDN) of the target machine, address is an IPv4 address for the target machine in the a.b.c.d form.

/var/run/mdnsctl.sock
UNIX-domain socket used for communication with mdnsd(8).

The following examples demonstrate some basic uses of mdnsctl.
# Lookup a host A and HINFO record
mdnsctl lookup -ah foobar.local

# Reverse lookup an address
mdnsctl rlookup 192.168.8.32

# Browse up all services in the local network
mdnsctl browse

# Browse and resolve all services
mdnsctl browse -r

# Browse and resolve all services and output in script-readable format
mdnsctl browse -rs

# Browse and resolve all the http services in the local network
mdnsctl browse -r http tcp

# Publish a simple ftp service
mdnsctl publish myftp ftp tcp 21 "user=foobar"

# Proxy publish a https service that has www.mysite.com as the target
mdnsctl proxy mysite https tcp 443 www.mysite.com 12.3.45.6 "user=foobar"

mdnsd(8)

mdnsctl is released under the ISC license.

The mdnsctl program version 0.1 was released in 13 February 2011.

Christiano Farina Haesbaert <haesbaert@haesbaert.org>

April 19, 2016 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 8 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.