I have a problem loading webpages in kali. I have tried both chromium and iceweasel and both are having the same problem. I have searched about and still cannot find an answer and it is getting very annoying.

Here is what I have tried and done:

Change true to false in /etc/NetworkManager/NetworkManager.conf
I have checked DNS settings and added google's dns
I can ping my router and the webpage I am trying to visit
I have disabled ipv6 in ifconfig
I have the same problem on both wired and wireless
I have internet access as I can install software via terminal
I have updated and upgrade kali