|Check whether you have connected to Internet successfully, you should be able to ping google.com or yahoo.com if you are connected to internet. |
If you are able to ping, you can then use nslookup to try resolving URL/domain name. If it doesn't work, there is problem on DNS servers, you can then configure following DSN servers which are provided by OpenDNS, after that test again.
Hope it helps.