Creating A DNS Cache With djbdns
Creating A DNS Cache With djbdnsBuilding a local DNS cache will speed up your internet connection since the time for the “translation job” (converting domain names into IP addresses) will become negligible with the assumption that the DNS cache gets the information from the parent DNS. FreeBSD already ships bind in each release but I prefer to use djbdns. Simple way to build local DNS cache in FreeBSD using ports: 1. Install djbdns portssu-2.05b# whereis djbdns
Just press OK and the installation process will begin. 2. Configuration# pw groupadd nofiles -g 800 These commands will add the group nofiles, and the users dnslog and dnscache. # dnscache-conf dnscache dnslog /etc/dnscache 127.0.0.1 These commands will make the IP address 127.0.0.1 a DNS cache “only” for that computer. In order to be able to use the DNS cache in our network, we need to issue more commands: # dnscache-conf dnscache dnslog /etc/dnscache 192.168.1.1 Now, each client can add 192.168.1.1 as a valid DNS resolver: To use “daemontools” power we need to add this entry in rc.conf: svscan_enable=”YES” The first time, we need to start it manually: su-2.05b# /usr/local/etc/rc.d/svscan.sh start Check for running service: su-2.05b# ps -ax | grep dns 338 ?? I 0:00.03 supervise dnscache To check if dnscache “really works”: su-2.05b# tail -f /etc/dnscache/log/main/current Example output: su-2.05b# tail -f /etc/dnscache/log/main/current Congratulations, your DNS cache is working well.
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning







Recent comments
10 hours 29 min ago
12 hours 30 min ago
15 hours 41 min ago
18 hours 1 min ago
19 hours 11 min ago
20 hours 29 min ago
1 day 33 min ago
1 day 4 hours ago
1 day 4 hours ago
1 day 19 hours ago