usually this is badly configured wifi AP which doesnt offer dns server for the phone, so host resolver fails. Or wifi nat behind other wifi nat (also causes problems).