Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Ubuntu can't access internet anymore.

  1. #1
    Join Date
    Sep 2011
    Beans
    117
    Distro
    Ubuntu 12.04 Precise Pangolin

    Ubuntu can't access internet anymore.

    Hello everyone, everything was working fine until this morning, I can no longer access Internet unless I connect a VPN, I think it's a DNS problem but I really don't know what to do to solve this problem.

  2. #2
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Ubuntu can't access internet anymore.

    Have you tried pinging "somewhere" by name and/or address (eg. google.com or 8.8.8.8) to see if it's DNS related?
    Routing is another possibility.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  3. #3
    Join Date
    Sep 2011
    Beans
    117
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ubuntu can't access internet anymore.

    I already tried that, here is the output:
    ping google.com
    ping: unknown host google.com

    But the strange thing that pingin 8.8.8.8 is fine!?
    ping 8.8.8.8
    PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
    64 bytes from 8.8.8.8: icmp_req=1 ttl=48 time=127 ms
    64 bytes from 8.8.8.8: icmp_req=2 ttl=48 time=135 ms
    64 bytes from 8.8.8.8: icmp_req=3 ttl=48 time=133 ms

  4. #4
    Join Date
    May 2014
    Location
    Goa
    Beans
    62
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Ubuntu can't access internet anymore.

    Change your DNS to 8.8.8.8 and then check..

    Good Luck..

  5. #5
    Join Date
    Apr 2012
    Beans
    7,256

    Re: Ubuntu can't access internet anymore.

    That's exactly what you'd expect when DNS isn't working - can you post the outputs of

    Code:
    cat /etc/resolv.conf
    
    sudo lsof -i :53
    as well please

  6. #6
    Join Date
    Sep 2011
    Beans
    117
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ubuntu can't access internet anymore.

    Quote Originally Posted by rahul4557 View Post
    Change your DNS to 8.8.8.8 and then check..

    Good Luck..
    I tried that already, in Network Manager - IPv4 Settings - Method: Automatic (DHCP) addresses only and set DNS servers to 8.8.8.8, 8.8.4.4

  7. #7
    Join Date
    Sep 2011
    Beans
    117
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ubuntu can't access internet anymore.

    Quote Originally Posted by steeldriver View Post
    That's exactly what you'd expect when DNS isn't working - can you post the outputs of

    Code:
    cat /etc/resolv.conf
    
    sudo lsof -i :53
    as well please
    Sure!
    cat /etc/resolv.conf
    Code:
    # Generated by NetworkManager
    nameserver 127.0.0.1
    sudo lsof -i :53
    Code:
    COMMAND  PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
    dnsmasq 1333 nobody    4w  IPv4  11789      0t0  UDP localhost:domain 
    dnsmasq 1333 nobody    5u  IPv4  11790      0t0  TCP localhost:domain (LISTEN)

    I'm sorry for late replays, I have to disconnect my VPN to enter those codes then reconnect again to post in the forum.

  8. #8
    Join Date
    Sep 2011
    Beans
    117
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ubuntu can't access internet anymore.

    Update:
    Pinging 74.125.224.36 (Google IP) is fine but pinging google.com itself doesn't work (Not only Google, but every website)

  9. #9
    Join Date
    May 2014
    Location
    Goa
    Beans
    62
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Ubuntu can't access internet anymore.

    can try making the following changes to interfaces file in /etc/network and then restart the networking service..

    # The primary network interface
    auto eth0
    iface eth0 inet static
    address *.*.*.* #your machine IP
    gateway *.*.*.* #your ISP Gateway
    network *.*.*.*
    broadcast *.*.*.*
    dns-nameservers 8.8.8.8 8.8.4.4 #dns servers

  10. #10
    Join Date
    Sep 2011
    Beans
    117
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ubuntu can't access internet anymore.

    Quote Originally Posted by rahul4557 View Post
    can try making the following changes to interfaces file in /etc/network and then restart the networking service..
    I checked my router's settings the Gateway was blank.
    I just don't understand why only IPs work instead of Domain names, everything was fine last night (sigh)
    I remember I had this problem once before a long time ago and I found this workaround that fixed my problem:

    Code:
    sudo apt-get remove --purge resolvconf 
    sudo /etc/init.d/networking restart
    But I tried those commands and it didn't work, I remember they worked before but now nothing happens.
    Last edited by emptycoder; June 13th, 2014 at 01:37 PM.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •