status-go/vendor/github.com/pion/mdns/README.md

72 lines
2.9 KiB
Markdown
Raw Permalink Normal View History

2022-03-10 09:44:48 +00:00
<h1 align="center">
<br>
Pion mDNS
<br>
</h1>
<h4 align="center">A Go implementation of mDNS</h4>
<p align="center">
<a href="https://pion.ly"><img src="https://img.shields.io/badge/pion-mdns-gray.svg?longCache=true&colorB=brightgreen" alt="Pion mDNS"></a>
<a href="https://pion.ly/slack"><img src="https://img.shields.io/badge/join-us%20on%20slack-gray.svg?longCache=true&logo=slack&colorB=brightgreen" alt="Slack Widget"></a>
<br>
2024-06-05 20:10:03 +00:00
<img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/pion/mdns/test.yaml">
<a href="https://pkg.go.dev/github.com/pion/mdns"><img src="https://pkg.go.dev/badge/github.com/pion/mdsn.svg" alt="Go Reference"></a>
2022-03-10 09:44:48 +00:00
<a href="https://codecov.io/gh/pion/mdns"><img src="https://codecov.io/gh/pion/mdns/branch/master/graph/badge.svg" alt="Coverage Status"></a>
<a href="https://goreportcard.com/report/github.com/pion/mdns"><img src="https://goreportcard.com/badge/github.com/pion/mdns" alt="Go Report Card"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
</p>
<br>
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`
```sh
2024-05-15 23:15:00 +00:00
go run examples/server/main.go
2022-03-10 09:44:48 +00:00
```
2024-06-05 20:10:03 +00:00
For a mDNS server that responds to queries for `pion-test.local` with a given address
```sh
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.
2022-03-10 09:44:48 +00:00
### Running Client
To query using Pion you can run the `query` example
```sh
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
```
2024-06-05 20:10:03 +00:00
### RFCs
#### Implemented
- **RFC 6762** [Multicast DNS][rfc6762]
- **draft-ietf-rtcweb-mdns-ice-candidates-02** [Using Multicast DNS to protect privacy when exposing ICE candidates](https://datatracker.ietf.org/doc/html/draft-ietf-rtcweb-mdns-ice-candidates-02.html)
[rfc6762]: https://tools.ietf.org/html/rfc6762
### Roadmap
The library is used as a part of our WebRTC implementation. Please refer to that [roadmap](https://github.com/pion/webrtc/issues/9) to track our major milestones.
2022-03-10 09:44:48 +00:00
### Community
2024-06-05 20:10:03 +00:00
Pion has an active community on the [Slack](https://pion.ly/slack).
2022-03-10 09:44:48 +00:00
2024-06-05 20:10:03 +00:00
Follow the [Pion Twitter](https://twitter.com/_pion) for project updates and important WebRTC news.
2022-03-10 09:44:48 +00:00
2024-06-05 20:10:03 +00:00
We are always looking to support **your projects**. Please reach out if you have something to build!
2022-03-10 09:44:48 +00:00
If you need commercial support or don't want to use public methods you can contact us at [team@pion.ly](mailto:team@pion.ly)
### Contributing
2024-06-05 20:10:03 +00:00
Check out the [contributing wiki](https://github.com/pion/webrtc/wiki/Contributing) to join the group of amazing people making this project possible
2022-03-10 09:44:48 +00:00
### License
2024-06-05 20:10:03 +00:00
MIT License - see [LICENSE](LICENSE) for full text