Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 44

Thread: HOWTO: Persistant DNS Caching with pdnsd.

  1. #11
    Join Date
    Jul 2006
    Location
    Here
    Beans
    11,187

    Re: HOWTO: Persistant DNS Caching with pdnsd.

    hmm, i use dnsmasq.
    i do mine similar to yours:

    sudo apt-get install dnsmasq
    sudo xedit /etc/dhcp3/dhclient.conf
    prepend domain-name-servers 127.0.0.1, 208.67.222.222, 208.67.220.220;

    sudo xedit /etc/dnsmasq.conf
    listen-address=127.0.0.1
    (i also increase the cache, but it's not necessary)

    then just reboot and your good to go

  2. #12
    Join Date
    Apr 2007
    Location
    Tasmania, Australia
    Beans
    52

    Re: HOWTO: Persistant DNS Caching with pdnsd.

    I removed this line that I added from the Open DNS instructions:

    prepend domain-name-servers 208.67.222.222,208.67.220.220;

    and it is now working fine. Once I visit a page the second time it has now been cached and appears almost instantly as above.

    One more question please, how does one clear the local cache if required?

  3. #13
    Join Date
    Aug 2006
    Location
    SW France
    Beans
    90
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: Persistant DNS Caching with pdnsd.

    Hi.

    Apologies for not responding to queries earlier (except things like 'It won't work'). Thanks for contributions from others, which have mostly answered the questions, I think.

    I have since upgraded to Feisty (via Edgy) and whatever was causing the delay in processing DNS queries seems to have gone away, to a large degree. In reviewing my original post, I noticed that the dhclient.conf and resolve.conf files had been changed (probably during an upgrade), so the local cache was no longer being used. I have to say, I had not noticed a great difference in site access speed.

    For some reason, I have only just found the pdnsd homepage. Click on the 'Documentation' link there, to find an additional comprehensive source of information!

    From that page, the cache can be cleared by:
    Code:
    sudo pdnsd-ctl empty-cache
    (I can offer no warranty on that instruction.)

    In summary, I no longer use Dapper; the use of a local cache doesn't seem (to me) to be as necessary on Feisty, but the original instructions still work with Edgy and Feisty.

  4. #14
    Join Date
    Apr 2007
    Location
    Tasmania, Australia
    Beans
    52

    Re: HOWTO: Persistant DNS Caching with pdnsd.

    Thanks.

    Had a look at the documentation but it is way above my tech level.

    I have your instructions working fine on Gutsy. The second time I visit a page it loads almost instantaneously which it was not doing before.

    Is there any way to retain the DNS cache between sessions?

  5. #15
    Join Date
    Aug 2006
    Location
    SW France
    Beans
    90
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: Persistant DNS Caching with pdnsd.

    Quote Originally Posted by lonoy View Post
    ... when I use the code:

    Code:
    sudo ifdown eth0 && sudo ifup eth0
    Should the correct response be:

    ifdown: interface eth0 not configured
    Ignoring unknown interface eth0=eth0.
    It would appear that your network interface is not eth0, but the changes that the OpenDNS instructions give will become active at a reboot anyway.

  6. #16
    Join Date
    Aug 2006
    Location
    SW France
    Beans
    90
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: Persistant DNS Caching with pdnsd.

    Quote Originally Posted by lonoy View Post
    Had a look at the documentation but it is way above my tech level.
    ...
    Is there any way to retain the DNS cache between sessions?
    Shouldn't you Aussies be in bed by now?

    Don't imagine that I understand the docs for pdnsd! A search in the page for 'empty' just brought up the right line.

    The cache is persistent across reboots -- that's the 'p' in pdnsd.

  7. #17
    Join Date
    Apr 2007
    Location
    Tasmania, Australia
    Beans
    52

    Re: HOWTO: Persistant DNS Caching with pdnsd.

    Rust never sleeps

    Rebooted and all is fine. Thanks again for your time.
    Last edited by lonoy; October 26th, 2007 at 12:31 PM.

  8. #18
    Join Date
    Apr 2006
    Beans
    147

    Re: HOWTO: Persistant DNS Caching with pdnsd.

    Great tutorial, thanks! pdnsd appears to be better than dnsmasq!

  9. #19
    Join Date
    Dec 2007
    Beans
    68
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HOWTO: Persistant DNS Caching with pdnsd.

    how about DSL? everytime when i reconnect to the internet, the nameserver in resolv.conf file change.
    CypherHackz - Running on Ubuntu 9.04 (Jaunty Jackalope)

  10. #20
    Join Date
    Jun 2006
    Location
    jaipur,India
    Beans
    79
    Distro
    Ubuntu Development Release

    Re: HOWTO: Persistant DNS Caching with pdnsd.

    Thanks a Ton!
    It helped me alot, before this i have tried Dnsmasq & Bind but none of them could save cache on disk.

    Thanks again, I think you should post this to ubuntu wiki

Page 2 of 5 FirstFirst 1234 ... LastLast

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
  •