Installing DNS Cache - pDNSd


Installing DNS Cache - pDNSd - DNS or DNS Proxy Cache same function as Squid-Cache however, works only for storing temporarily register the domain and IP nama2 banality we visit so saving time request that prompted the client to the ISP, and each request will be handled by the DNS server locally so it saves bandwidth.



For example, when our request for domain would look resolving its speed, the more his resolve is why the sooner also request that asked back to us:

Installing DNS Cache - pDNSddig hotmail.com
it will produce output pd end line include:

;; Query time: 8794 msec
longer visible above sekalikan dr request gets to us, imagine if there were 1000 users who request within 1 second, even full internet connection just resolving it.

Let's compare it with this one:

dig hotmail.com
and the result is:

;; Query time: 0 msec
If it terindetifikasi already in DNS Cache then request the other tends to 0 msec smua. Because the object has been requested before. It's a big bandwidth savings when used for large-scale ISP or Corporate sperti.

And following the installation tutorial and in use within Ubuntu Lucid:

apt-get install pdnsd
after the package is installed, so that the optimal time to configure:
edit the file:

/ Etc / default / pdnsd
that bs autorun each boot. Change it to:

START_DAEMON = yes
save that in the edit timeout td. Then edit the file again:

/ Etc / pdnsd.conf
change the following line into:

server_ip = any;
add the following text at the end of the line / bottom:

server {
        label = "newsletter";
        ip = 180,131,144,144,
           180 131 145 145;
}
server {
        label = "OpenDNS";
        ip = 208.67.222.222,
           208.67.220.220;
}
server {
        label = "telecoms";
        ip = 202.134.0.155,
           203.130.196.5;
}
server {
        label = "google";
        ip = 8.8.8.8,
           8.8.4.4;
}
server {
        label = "modem";
        ip = 192.168.100.1;
}
when finished save more ...
then edit another file:

/ Etc / resolv.conf
remove existing nameservers to / only one course:

nameserver 127.0.0.1
save ...

and that last restart pDNSd let it:

/ Etc / init.d / pdnsd start
try to "dig" the domain name and its liatlah time on a second request.

NOTE:

Before installing pDNSd, please delete the first packet Bind / Named / resolvconf because it will fail (seizure port: 53)
Please read the contents of dr pdnsd.conf favorably to the results of in-depth, just as how long the store or a maximum cache size of the cache contents.
Related : Installing DNS Cache - pDNSd.