Results 1 to 7 of 7

Thread: can't resolve domains with my connection.

Hybrid View

  1. #1
    Join Date
    May 2010
    Beans
    18
    Distro
    Ubuntu 10.04 Lucid Lynx

    can't resolve domains with my connection.

    Wondering if someone might know how to point me in the right direction.

    Somehow, my setup no longer can resolve domains. (ie: www.google.com) from ping or from a browser, etc. But, I can ping the ip addresses just fine. And, no -- it's not the /etc/hosts file. I literally can't access any urls period...

    Perhaps something to do with the latest updates -- and it knocked over some sort of network configuration settings? (I keep my system pretty up to date generally)...

    Anyone know where I should look?

    I was looking at this url for some ideas... http://oreilly.com/catalog/linag2/book/ch06.html
    stuff like "name resolution", "resolver config", etc. but this stuff is new for me.

  2. #2
    Join Date
    Oct 2009
    Beans
    619

    Re: can't resolve domains with my connection.

    Your problem is DNS servers.

    Have you tried turning it off and on again? Have you tried turning your router off and on?

    Both could possibly fix it.

  3. #3
    Join Date
    Apr 2008
    Location
    Far, far away
    Beans
    2,148
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: can't resolve domains with my connection.

    Your /etc/resolv.conf file determines where your system sends DNS requests.
    Usually this is set during boot by a dhcp process with your router. If it has been changed accidentally, or if your router is misconfigured to provide incorrect dns addresses then you'll not be able to do dns lookup.

    If that file appears to be correct then check your firewall settings and make sure outbound port 53 udp and tcp are not blocked.

    The command cat /etc/resolv.conf will list that file's contents. You can post it here if you're unsure if it's correct.

  4. #4
    Join Date
    May 2010
    Beans
    18
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: can't resolve domains with my connection.

    well, i have two laptops. one can access through my router just fine.

    while the other can't.

    i restarted the modem/router. still nothing with the faulty one.

    and, interestingly, i restarted the faulty laptop with the ubuntu startup iso. works fine when doing it like that (infact i'm typing to you now in this environment). but when i chroot into my "real environment on this laptop, it doesn't work.

    so: on the same machine, it works in the iso startup environment. doesn't work in the chroot.

    i thought perhaps something to do with my .bashrc (i have alot of setup things i do), but i've disabled it. it comes in vanilla. and still nothing.


  5. #5
    Join Date
    Oct 2009
    Beans
    619

    Re: can't resolve domains with my connection.

    Could you give us the output of:
    Code:
    cat /etc/resolv.conf
    That should help.

  6. #6
    Join Date
    May 2010
    Beans
    18
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: can't resolve domains with my connection.

    ah, the 2nd tip was very helpful.

    indeed that file was blank.

    so i was able to refer to my 2nd laptop, cut/paste. and i'm back in business.

    thank you so very much!

  7. #7
    Join Date
    Apr 2008
    Location
    Far, far away
    Beans
    2,148
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: can't resolve domains with my connection.

    If you are using chroot as you say then you need to be sure a workable /etc path exists in the new root.

    If your /etc/resolv.conf isn't set on rebooting then you have a networking dhcp config issue. /etc/networking/interfaces needs to be set for correct dhcp values to be pulled from your router on boot. Of course, if you chroot to a new root and there is no /etc files present then it won't matter what happened on boot because /etc/resolv.conf won't be there any more. Correctly using a chroot environment is a fairly advanced topic.

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
  •