Unable to resolve Hostname using WiFi.resolve(“Hostname.local”)

Hi,

I am using two duos. In one(1st) i have set the hostname using mdns and in another(2nd) i am trying to resolve it using WiFi.resolve(). In 2nd a different hostname is set using mdns. I am able to ping both duos using .local domain from my windows. Unfortunately in 2nd Duo the Wifi.resolve(“1stHostname.local”) does not work and returns 0.0.0.0 . I have also tried to resolve www.google.com and it returns a IP address.
Could anybody let me know how to resolve mdns hostnames.

AFAIK, the WiFi.resolve() function relies on the DNS server provided by your gateway.
Have a check which IP that is via

WiFi.dnsServerIP();

And please no double posting

Is there a way to resolve the mDNS host IP?