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

Support mDNS #171

Open
Caligatio opened this issue Jan 14, 2018 · 2 comments
Open

Support mDNS #171

Caligatio opened this issue Jan 14, 2018 · 2 comments

Comments

@Caligatio
Copy link

I would like to use c-ares in my Python asynchronous mDNS library but I need the ability for the underlying DNS logic to join a multicast group. I wasn't familiar at all with this process but, at a minimum it requires setting the socket option IP_ADD_MEMBERSHIP with the desired multicast group for the listening socket.

I think the rest of the multicast specific functionality can be hacked in using the existing functions (e.g. setting the destination "server" to be the multicast address).

@daviddrysdale
Copy link
Member

Would setting the socket creation callback or the socket configuration callback do what you need? You could have a callback that set the multicast option you needed.

@jblachly
Copy link

I think the issue title is misleading as really what he is asking for (and what brought me here) is "Multicast DNS", not "multicast IP addresses".

https://en.wikipedia.org/wiki/Multicast_DNS (also called 'mDNS')

These take the form of hostname.local on your LAN and are provided on linux by avahi-daemon, by default on MacOS, and optionally by systemd on linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants