Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Trying to connect my new Raspi to the internet for the first time via a cross-over to a bridged connection with my laptop's wi-fi.

The Raspi browser works for internal network webservers but won't receive anything from the WAN using either URL or ip address. Get a name resolution failure and a fail to load page.

I'm thinking it must be router related as it only fails if going through the gateway router.

Any ideas what the issue might be and how to resolve it?

share|improve this question
What's the output of the following commands? ip addr show ip route show cat /etc/resolv.conf I think your dhcp server has either not send the correct dns servers or routers to external networks. Did you try pinging a external server? ping -c 4 (This is a DNS Server from google). – morlix Jan 3 '13 at 7:13
Try running traceroute Since external ping fails, we're interested in first few results. – AndrejaKo Jan 3 '13 at 9:08
Problem is resolved. I rebooted the laptop this morning and the router. Re-instated the bridge in the laptop and suddenly things started to work. – Chef Flambe Jan 3 '13 at 18:51

Try the following:

sudo nano /etc/network/interfaces

Then on the interfaces file you should have something like:

iface wlan0

Insert a new line exactly after that one with your DNS server (I will use google's for the example):


Exactly like that and just reboot your pi via:

sudo reboot

That fixed mine, I hope it gets yours going!


I also changed the content of the file resolv.conf on the /etc/ directory:

sudo nano /etc/resolv.conf

In which you will see something like:

domain gateway.2wire.net
search gateway.2wire.net

Change the nameserver IP to whatever your DNS is.

share|improve this answer
this solution solve my problem after several hours crashing my head with it – rdiaz82 Mar 30 at 23:08
up vote 0 down vote accepted

Thanks for all the help.

I ended up picking up the Make Mag book on the RaspPi and followed the walk-thru on the configuration of the WiFi. Have no idea what I was doing but it seemed to get it working without any hassle and I did it in under 15minutes.

I'm thinking it was a problem in the interfaces file that I had done changes to to make it a static IP. I had read a couple conflicting articles and I think I picked the wrong one...Ooops.

Anyway, works great now and I've been playing with the Gert board so life is good.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.