How to advertise services to mDNS

ghost07
Posts: 36
Joined: Mon Oct 03, 2022 11:47 am

How to advertise services to mDNS

Postby ghost07 » Thu Jan 19, 2023 4:47 pm

Hello, is there any mDNS protocol description?
I would like to only advertise some services, but I don't want to run mDNS server, keep track about other devices on network and so on.
So I don't want to use whole mdns library with all that unnecessary functionality.

I think about send some packet saying something like: "Hi all, I am [device_name], and I can provide [service_list]". For example in 1 minute interval or so.

Can I do that, even if no one in the network was asking?

And how should such packet look like? I mean, how do I advertise A, PTR, SRV, TXT records?

ESP_Sprite
Posts: 9749
Joined: Thu Nov 26, 2015 4:08 am

Re: How to advertise services to mDNS

Postby ESP_Sprite » Fri Jan 20, 2023 3:13 am

As with most Internet-ish protocols, mDNS is documented in a RFC. Suggest you check that.

Who is online

Users browsing this forum: No registered users and 117 guests