Mdns
Pure Go implementation of Multicast DNS
Install / Use
/learn @pion/MdnsREADME
Go mDNS implementation. The original user is Pion WebRTC, but we would love to see it work for everyone.
Running Server
For a mDNS server that responds to queries for pion-test.local
go run examples/server/main.go
For a mDNS server that responds to queries for pion-test.local with a given address
go run examples/server/publish_ip/main.go -ip=[IP]
If you don't set the ip parameter, "1.2.3.4" will be used instead.
Running Client
To query using Pion you can run the query example
go run examples/query/main.go
You can use the macOS client
dns-sd -q pion-test.local
Or the avahi client
avahi-resolve -a pion-test.local
RFCs
Implemented
- RFC 6762 Multicast DNS
- draft-ietf-rtcweb-mdns-ice-candidates-02 Using Multicast DNS to protect privacy when exposing ICE candidates
Roadmap
The library is used as a part of our WebRTC implementation. Please refer to that roadmap to track our major milestones.
Community
Pion has an active community on the Discord.
Follow the Pion Bluesky or Pion Twitter for project updates and important WebRTC news.
We are always looking to support your projects. Please reach out if you have something to build! If you need commercial support or don't want to use public methods you can contact us at team@pion.ly
Contributing
Check out the contributing wiki to join the group of amazing people making this project possible
License
MIT License - see LICENSE for full text
Related Skills
node-connect
338.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
338.0kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
83.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
338.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
