1

I am trying to connect the Raspberry pi 2 running on Raspbian to my win7 laptop via ethernet. After the connections are done, when I point the mouse on the network icon, I am getting a message, 'eth0: configured '. But when I try opening a browser, I am not able to access the net. When I open chromium, I am getting a message about DNS lookup failing.

Please help!!

Ananda
  • 149
  • 4

2 Answers2

2

Using Google DNS is a sound advice, but you shouldn't set a nameserver manually in /etc/resolv.conf. Instead, consider right-clicking on network connection icon (I assume you're using NetworkManager), select "Edit Connections" and manually add "8.8.8.8" as a name server for your connection.

Alternatively, you can configure dhclient to use Google DNS for all DHCP-configured connections, by adding the following line to /etc/dhcp/dhclient.conf

supersede domain-name-servers 8.8.8.8;

If Google DNS is not working for you, check connection properties in Windows to find out which DNS server it is using, and configure your RPi to use the same, as explained above.

Dmitry Grigoryev
  • 28,277
  • 6
  • 54
  • 147
1

Add nameserver 8.8.8.8 or your preferred dns server to /etc/resolv.conf

Diederik de Haas
  • 809
  • 8
  • 12