espressif/esp-matter

The device adds the local domain name of mdns (CON-1187)

wolen666 opened this issue · 8 comments

I found that the bottom layer of matter uses minmdns. Now I want to build a webserver control web page for my device. I need a domain name of Abc.local for browser access. How should I initialize a domain name with minmdns?

CONFIG_LWIP_LOCAL_HOSTNAME in menuconfig

Thank you very much for your answer. The ABC.local domain name above is an example I gave. Of course, the products we want to make require different domain names for each device. Obviously it is not appropriate to modify them one by one in menuconfig. Is there an API? Modified through program? looking forward to your reply

I have already built this (webserver in the device) and didn't find it be useful. It is too confusing when there are multiple devices. It is better to use a phone app with custom clusters.

20240607-100714
Okay, thank you for your answer. I tried the link you gave to add a domain name in the early days and it didn't work very well. Later I directly added the Advertise function under the official underlying file of matter: connectedhomeip/src/lib/dnssd/Advertiser_ImplMinimalMdns.cpp.
The addition can be successful, but memory leaks occasionally occur. I don’t know if Matter officially has an interface for adding new domain names to minmdns. At the same time, I also saw an example of minmdns in the official example folder. I I feel like I can give it a try

You probably need to turn this off, CONFIG_USE_MINIMAL_MDNS=y, so that it will use the Espressif MDNS. With that set it is using MDNS from CHIP code.

Okay, I just tried this and it works, thank you very much

Okay, I just tried this and it works, thank you very much