Files
linuxkit/alpine/packages/mdnstool
David Scott 1477dee600 mdnstool: add support for a "hybrid" network mode
Normally we advertise $(hostname).local. by MDNS on eth0. If the new
"hybrid" networking mode is configured, we will use 2 NICs and eth1
will be connected via vmnet, and so we should run MDNS on it.

Signed-off-by: David Scott <dave.scott@docker.com>
2016-04-16 19:35:18 +01:00
..
2016-03-30 15:08:32 +01:00

Tool to monitor a network interface for IP changes and publish an mDNS service.

To publish docker.local and map it to the IP of interface eth0:

./mdnstool -if eth0

Options:

Usage of ./mdnstool:
  -hostname string
        Hostname - must be FQDN and end with . (default "docker.local.")
  -if string
        Network interface to bind multicast listener to. This interface will be monitored for IP changes. (default "eth0")
  -info string
        TXT service description (default "Moby")
  -instance string
        Instance description (default "Moby")
  -port int
        Service port (default 22)
  -service string
        SRV service type (default "_ssh._tcp")

To build for Linux:

GOOS=linux GOARCH=386 go build -v