diff --git a/tasmota/tasmota_support/support_wifi.ino b/tasmota/tasmota_support/support_wifi.ino index b72c309cd..81e4de039 100644 --- a/tasmota/tasmota_support/support_wifi.ino +++ b/tasmota/tasmota_support/support_wifi.ino @@ -893,6 +893,9 @@ bool WifiHostByName(const char* aHostname, IPAddress& aResult) { } #else // DnsClient can't do one-shot mDNS queries so use WiFi.hostByName() for *.local +#ifdef USE_IPV6 + aResult.setV4(); // force IPv4 result for now, until DNS is updated to IPv6 +#endif size_t hostname_len = strlen(aHostname); if (strstr_P(aHostname, PSTR(".local")) == &aHostname[hostname_len] - 6) { if (WiFi.hostByName(aHostname, aResult)) {