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:
dig hotmail.comit will produce output pd end line include:
;; Query time: 8794 mseclonger 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.comand the result is:
;; Query time: 0 msecIf 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 pdnsdafter the package is installed, so that the optimal time to configure:
edit the file:
/ Etc / default / pdnsdthat bs autorun each boot. Change it to:
START_DAEMON = yessave that in the edit timeout td. Then edit the file again:
/ Etc / pdnsd.confchange the following line into:
server_ip = any;add the following text at the end of the line / bottom:
server {when finished save more ...
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;
}
then edit another file:
/ Etc / resolv.confremove existing nameservers to / only one course:
nameserver 127.0.0.1save ...
and that last restart pDNSd let it:
/ Etc / init.d / pdnsd starttry 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.
Tags:
server