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

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