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.
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com
Red Hat Virtual Experience - a free virtual event. Dec. 9th







Recent comments
11 hours 29 min ago
17 hours 17 min ago
19 hours 8 min ago
20 hours 53 min ago
1 day 43 min ago
1 day 6 hours ago
1 day 6 hours ago
1 day 10 hours ago
1 day 16 hours ago
1 day 21 hours ago