Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Probing before announcing is not implemented #37

Open
soundprojects opened this issue Aug 14, 2022 · 2 comments
Open

Probing before announcing is not implemented #37

soundprojects opened this issue Aug 14, 2022 · 2 comments
Labels

Comments

@soundprojects
Copy link

It seems like libmdns does not probe on startup according to the mdns specification

When a service is registrered, the 'send_unsollicited' function is triggered but this sends out a Query Response out to the multicast group

Shouldn't we first send a few rounds of DNS Queries questioning whether anyone has records for the service we wish to occupy and then after some time and nobody answered we announce the service?

https://www.rfc-editor.org/rfc/rfc6762#section-8

@willstott101
Copy link
Contributor

willstott101 commented Aug 20, 2022

Currently libmdns is only a responder and cannot perform queries. I'm still maintaining this lib but very much just to merge Pull Requests. Querying support would be very welcome (#5 ) but I'm personally unlikely to add anything substantial to this lib any time soon.

@willstott101
Copy link
Contributor

willstott101 commented Nov 7, 2022

Looking at this again:

The first startup step is that, for all those resource records that a
Multicast DNS responder desires to be unique on the local link, it
MUST send a Multicast DNS query asking for those resource records, to
see if any of them are already in use.

I think probing is only required when a service is expected to be unique. You're right that this would be a good thing to add. But again, really it's blocked on #5 being completed

@willstott101 willstott101 changed the title Probing and announcing not implemented? Probing before announcing not implemented? Nov 7, 2022
@willstott101 willstott101 changed the title Probing before announcing not implemented? Probing before announcing is not implemented Nov 7, 2022
This was referenced Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants