Friday, May 05, 2006

 

dnscache on a hetzner root server using Debian


How to run dnscache on a hetzner root server using Debian.
  1. Install daemontools
  2. Install djbdns
    $ apt-get install djbdns-installer
    $ get-djbdns
    $ build-djbdns
    $ /etc/init.d/djbdns stop # stop it
    $ rm /etc/init.d/djbdns # remove it
    $ update-rc.d -f djbdns remove # remove startup links

  3. Setup dnscache (user setup was already done by Debian)
    $ dnscache-conf dnscache dnslog /service/dnscache

  4. Configure hetzner's nameservers as "root name servers"
    $ cat <<EOF > /service/dnscache/root/servers/@
    213.133.98.98
    213.133.99.99
    213.133.100.100
    EOF

  5. Set FORWARDONLY option
    $ echo 1 > /service/dnscache/env/FORWARDONLY

  6. Restart dnscache
    $ svc -t /service/dnscache

  7. Edit your resolv.conf
    $ echo "nameserver 127.0.0.1" > /etc/resolv.conf">

  8. Use it and watch it
    $ dnsip kde.org
    $ tail -f /service/dnscache/log/main/current

Enjoy!

Comments:
Get any Desired College Degree, In less then 2 weeks.

Call this number now 24 hours a day 7 days a week (413) 208-3069

Get these Degrees NOW!!!

"BA", "BSc", "MA", "MSc", "MBA", "PHD",

Get everything within 2 weeks.
100% verifiable, this is a real deal

Act now you owe it to your future.

(413) 208-3069 call now 24 hours a day, 7 days a week.
 
Search engines try it

Casino
viagra
tramadol
cialis
 
Latest news. Viagra, cialis

viagra
cialis
tramadol
 
NSU - 4efer, 5210 - rulez

 
Post a Comment
Links to this post:

Create a Link


<< Home

This page is powered by Blogger. Isn't yours?