Results 1 to 3 of 3

Thread: How does DNS resolving work in Ubuntu?

  1. #1
    Join Date
    Mar 2009
    Location
    New Orleans
    Beans
    108
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Question How does DNS resolving work in Ubuntu?

    I'm just curious, does anyone know how DNS resolving works in Ubuntu (I'm running 12.10)? I have changed my DNS provider in the Network Settings dialogue, and everything works fine. I'm just confused on what's cached locally and where. Specifically /etc/resolve.conf has:
    Code:
    nameserver 127.0.1.1
    which I don't quite understand. I'd really like to get everything resolving locally, but just need some general direction on what goes on under the hood (I have searched the forum, the Web, and Ubuntu documentation, but no luck finding anything yet). Thanks!
    Last edited by wbar2; April 8th, 2013 at 04:03 AM.

  2. #2
    Join Date
    Apr 2012
    Beans
    5,063

    Re: How does DNS resolving work in Ubuntu?

    I found this description quite helpful

    http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/

  3. #3
    Join Date
    Mar 2009
    Location
    New Orleans
    Beans
    108
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: How does DNS resolving work in Ubuntu?

    Thanks! Finding out that dnsmasq is used helps alot. I also found that in 12.10, 127.0.0.1 in resolv.conf was changed to 127.0.1.1 which is what I have. Local caching is not done automatically, but can be enabled by adding a file to /etc/NetworkManager/dnsmasq.d/ and putting the following in it:
    Code:
    cache-size=1000
    (1000 is the number of addresses to store). Thanks again, lots of info out there now that I know what to look for.

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
  •