Results 1 to 9 of 9

Thread: DNS look-up failed after upgrade

  1. #1
    Join Date
    Nov 2008
    Location
    Not tellin'!
    Beans
    87
    Distro
    Xubuntu 12.04 Precise Pangolin

    DNS look-up failed after upgrade

    Have recently upgraded my laptop from 12.04 to 12.10. Now when I go online websites "can't be found because the DNS look-up failed."
    Laptop is dual boot with Windows 7, which works fine.
    Have tried wired and wireless, but to no avail.
    Have looked at other messages, and result of;
    Code:
    ping -c3 www.google.com
    ping: unknown host www.google.com
    I can not find a method of setting DNS automatically!
    My calendar is confused
    At the beginning it has M and T for Monday and Tuesday
    At the end it has 2 S' for Saturday and Sunday
    In the middle; WTF?

  2. #2
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    6,840
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: DNS look-up failed after upgrade

    Hi sqrooup.

    Could you post the result of these commands?
    Code:
    ifconfig
    
    route -n
    
    cat /etc/resolv.conf
    
    grep dnsmasq /etc/NetworkManager/NetworkManager.conf
    
    cat /var/run/nm-dns-dnsmasq.conf
    Regards.

  3. #3
    Join Date
    Nov 2008
    Location
    Not tellin'!
    Beans
    87
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: DNS look-up failed after upgrade

    ifconfig
    Code:
    eth0      Link encap:Ethernet  HWaddr 00:03:0d:ef:c3:cf  
              inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::203:dff:feef:c3cf/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:114 errors:0 dropped:0 overruns:0 frame:0
              TX packets:187 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:30884 (30.8 KB)  TX bytes:38495 (38.4 KB)
              
    
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:7305 errors:0 dropped:0 overruns:0 frame:0
              TX packets:7305 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:562344 (562.3 KB)  TX bytes:562344 (562.3 KB)
    
    wlan0     Link encap:Ethernet  HWaddr 40:61:86:40:45:a6  
              inet6 addr: fe80::4261:86ff:fe40:45a6/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:10 errors:0 dropped:1900 overruns:0 frame:0
              TX packets:813 errors:5 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:3244 (3.2 KB)  TX bytes:71666 (71.6 KB)
              Interrupt:17 Memory:f8c38000-f8c38100
    note: wireless disconected
    route -n
    Code:
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    0.0.0.0         192.168.1.254   0.0.0.0         UG    0      0        0 eth0
    169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
    192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0
    cat /etc/resolv.conf
    Code:
    cat: /etc/resolv.conf: No such file or directory
    grep dnsmasq /etc/NetworkManager/NetworkManager.conf
    Code:
    grep: /etc/NetworkManager/NetworkManager.conf: No such file or directory
    cat /var/run/nm-dns-dnsmasq.conf
    Code:
    cat: /var/run/nm-dns-dnsmasq.conf: No such file or directory
    Seem to have many files missing
    My calendar is confused
    At the beginning it has M and T for Monday and Tuesday
    At the end it has 2 S' for Saturday and Sunday
    In the middle; WTF?

  4. #4
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    6,840
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: DNS look-up failed after upgrade

    Thanks.

    Indeed. There seems to be a bigger problem.

    First, let's do a quick fix for your current session and add a valid nameserver.

    If your router provides DNS, do this:
    Code:
    sudo bash -c 'echo "nameserver 192.168.1.254" > /etc/resolv.conf'
    If not, do this:
    Code:
    sudo bash -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf'
    You should be able to ping and access the Internet now.

    Let us know how that goes, so we can tackle why your are missing those files.
    Regards.

  5. #5
    Join Date
    Nov 2008
    Location
    Not tellin'!
    Beans
    87
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: DNS look-up failed after upgrade

    Still nothing, ping still shows;
    Code:
    ping -c3 www.google.com
    ping: unknown host www.google.com
    My calendar is confused
    At the beginning it has M and T for Monday and Tuesday
    At the end it has 2 S' for Saturday and Sunday
    In the middle; WTF?

  6. #6
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    6,840
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: DNS look-up failed after upgrade

    Sorry to hear that.

    Did you use the router or Google's public DNS (8.8.8.8 )?

    Could you post the result of these commands?
    Code:
    cat /etc/nsswitch.conf
    
    nslookup ubuntu.com
    
    dig google.com
    Regards.

  7. #7
    Join Date
    Nov 2008
    Location
    Not tellin'!
    Beans
    87
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: DNS look-up failed after upgrade

    Google was just an example from a previous tread, used router, both in 8.8.8.8 and 192.168.1.254

    cat /etc/nsswitch.conf
    Code:
    # /etc/nsswitch.conf
    #
    # Example configuration of GNU Name Service Switch functionality.
    # If you have the `glibc-doc-reference' and `info' packages installed, try:
    # `info libc "Name Service Switch"' for information about this file.
    
    passwd:         compat
    group:          compat
    shadow:         compat
    
    hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
    networks:       files
    
    protocols:      db files
    services:       db files
    ethers:         db files
    rpc:            db files
    
    netgroup:       nis
    nslookup ubuntu.com
    Code:
    ;; connection timed out; no servers could be reached
    dig google.com
    Code:
    ; <<>> DiG 9.8.1-P1 <<>> google.com
    ;; glogal options: +cmd
    ;; connection timed out; no servers could be reached
    Note: have a spare 12.04 disc and have backed up all my files; is it possible to back up all my Chrome bookmarks (just in case)?
    My calendar is confused
    At the beginning it has M and T for Monday and Tuesday
    At the end it has 2 S' for Saturday and Sunday
    In the middle; WTF?

  8. #8
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    6,840
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: DNS look-up failed after upgrade

    puzzling...

    Could you access your admin router page?

    Could you check that the router's network settings are indeed 192.68.1.*?

    Could you post the result of these commands?
    Code:
    tracepath 192.168.1.254
    
    tracepath google.com
    Regards.

  9. #9
    Join Date
    Nov 2008
    Location
    Not tellin'!
    Beans
    87
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: DNS look-up failed after upgrade

    I am running a Xubuntu desktop on same network, it's address is 192.168.1.1, and it connects ok.
    And no problems getting into admin router page.

    192.168.1.254
    Code:
    1:  paul-lappy.local                                    0.101ms pmtu 1500
     1:  192.168.1.254                                         1.676ms reached
     1:  192.168.1.254                                         1.389ms reached
         Resume: pmtu 1500 hops 1 back 255
    google.com
    Code:
    gethostbyname2: unknown host
    Last edited by sqrooup; November 14th, 2012 at 06:15 AM.
    My calendar is confused
    At the beginning it has M and T for Monday and Tuesday
    At the end it has 2 S' for Saturday and Sunday
    In the middle; WTF?

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
  •