DNS SD sometimes does not work

#1
  1. My goal is: I am implementing a web server with dns.
  2. My actions are: I put these code in mos.yml
  • [“dns_sd.enable”, true]
  • [“dns_sd.host_name”, “esp32”]
  1. The result I see is: The dns did work, but sometimes esp32.local cannot be accessed, so I must use device IP.
  2. My expectation & question is: Did I miss something? Looks like there is no info about the dns in serial console when the dns cannot be accessed.
#2

You are trying to use DNS-SD, service discovery, multicast DNS.
If somehow that is not working in your network, try to inspect your network and determine the reason why.
In my experience with totally unrelated devices, sometimes some switches (including those inside Access Points) fail to forward multicast traffic. Some require special configuration. YMMV,