Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

RPi Network Connection working fine but internet not working

  • 04-12-2013 06:42PM
    #1
    Registered Users, Registered Users 2 Posts: 20,529 ✭✭✭✭


    I have a RPi (Raspbian OS) and I've it connected to the network via wireless and every was working fine but now for some reason. The internet isnt working.

    I can connect fine to the device via VNC and all the settings are right but the web browsers (Midori & IceWeasel) give me the problem loading page - server not found error :confused:

    Any suggestions?


Comments

  • Registered Users, Registered Users 2 Posts: 6,341 ✭✭✭bonzodog2


    Can you connect to a server by IP address? e.g. google is http://74.125.24.103/
    If so its a DNS issue


  • Registered Users, Registered Users 2 Posts: 20,529 ✭✭✭✭Dempsey


    Yea, its a DNS issue. How do I resolve it?


  • Registered Users, Registered Users 2 Posts: 1,477 ✭✭✭azzeretti


    Check your nameserver setting in /etc/resolv.conf . For a quick check edit that file and make it look like this:

    nameserver 8.8.8.8

    Save it and try a website.

    EDIT: I just realised you might be using NetworkManager to config your network. If so, edit you network interface and change:
    DNS server to 8.8.8.8
    Search domains: 127.0.0.1


  • Registered Users, Registered Users 2 Posts: 20,529 ✭✭✭✭Dempsey


    My Eircom router is using OpenDNS DNS servers but I thought these would automatically be used by outbound traffic?

    I used this tutorial to implement a static ip address on the wireless connection

    https://www.modmypi.com/blog/tutorial-how-to-give-your-raspberry-pi-a-static-ip-address

    Should I add
    nameserver  208.67.222.222
    nameserver 208.67.220.220
    

    to /etc/network/interfaces?


  • Registered Users, Registered Users 2 Posts: 2,370 ✭✭✭Knasher


    No, add them to /etc/resolv.conf (as azzeretti said).

    If you've set your dns servers on your router, then your router propagates those to the network using a protocol called dhcp. However setting a static IP address stops your pi from looking for an address with dhcp, so it never gets the dns server. So you need to manually set the dns servers also.


  • Advertisement
Advertisement