Connected to wifi, but no internet access
You can use Airplane Mode to reset DNS.

Put the phone in Airplane mode. Wait about a minute. Power the phone OFF, then start it up, then Remove Airplane Mode and test. It should work.