Skip to content

bbusse/mdns-discover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mdns-discover

mDNS Service Discovery

Installation

$ go install github.com/bbusse/mdns-discover@latest

Usage

Show help

$ mdns-discover help

Discover all devices

$ mdns-discover

Discover specific service

Regular expressions are not supported
The service type without the domain needs to be an exact match

$ MDNS_SERVICE_FILTER="_workstation._tcp" mdns-discover

Limit output to specified fields

# List of fields must be quoted and comma delimited
$ mdns-discover show "hostname, address, text"

Build

$ git clone https://github.com/bbusse/mdns-discover
$ cd mdns-discover
$ go build

Resources

mDNS Wikipedia
mDNS by Stuart Cheshire
https://github.com/hashicorp/mdns
https://github.com/grandcat/zeroconf/