AFAIK, the WiFi.resolve() function relies on the DNS server provided by your gateway. Have a check which IP that is via
WiFi.resolve()
WiFi.dnsServerIP();
And please no double posting