Logo

Charles Steinkuehler's LEAF/LRP Website

Home ] Up ] Contents ] Links ] Search ] Contribute ] Mirrors ] c0wz mirrror ] Support ]

dnscache
bind-8 ] dhclient ] dhcpd ] [ dnscache ] Extended Scripts ] Hard Disk Addon ] ifconfig ] IPSec 1.91 ] LaBrea ] LCDProc ] LRP-CD ] mawk ] nmap ] RAID ] ramdisk ] sniffit ] thttpd ] Utilities ] webalizer ] weblet/sh-httpd ]

 

DOWNLOAD CONFIG MAN PAGES NOTES FILES SOURCE

The dnscache program is a local DNS cache. It accepts recursive DNS queries from local clients such as web browsers. It collects responses from remote DNS servers.  This dnscache program is part of the djbdns suite provided by D. J. Bernstein.  See http://cr.yp.to/djbdns.html for more information. 

WARNING - This package is depricated.  I have switched to using Jacques Nilo's dnscache package.  I'll try to get some current data about dnscache up soon...


DOWNLOAD

djb dnscache 1.02
File Protocol Speed Site
dnscache.lrp http Fast

LEAF Sourceforge site

dnscache.lrp http Slow Local download

CONFIG

  1. Some settings for dnscache are in /etc/dnscache.conf
  2. IP addresses dnscache should answer queries from are in /etc/dnscache/root/ip/
  3. See http://cr.yp.to/djbdns/dnscache.html for slightly more detailed information
  4. dnscache is currently set to run as user 'daemon'.  You can change this in /etc/dnscache.conf
  5. Remember to configure your internal workstations to use your LRP box as their DNS server (this can be done manually or with dhcp).  Once dnscache is running, you have no need to use the DNS servers run by your ISP (although you can still enter them as secondary servers, if you like).
  6. If you are running a large, many user network (or have lots of RAM),  you might want to make the cache larger than it's current 1 Meg size (set in /etc/dnscache.conf).

MAN PAGES


NOTES

  1. dnscache runs chrooted in the directory specified by the $ROOT environment variable, under the uid and gid specified by the $UID and $GID environment variables.
  2. dnscache accepts a packet or connection from IP address 1.2.3.4 if it sees a file named ip/1.2.3.4 or ip/1.2.3 or ip/1.2 or ip/1.
  3. dnscache reads a list of dotted-decimal root server IP addresses, one address per line, from servers/@. It also scans the servers directory for server IP addresses for other domains. If there are addresses listed in servers/corp.local, for example, then dnscache will send queries for anything.corp.local to those addresses, and will not cache records for anything.corp.local from outside servers such as the root servers.
  4. The dnscache program is part of a suite of programs, and is intended to be run by utilities from the daemontools package (see http://cr.yp.to/software.html).  To keep the size down, I have stripped out all the daemon tools binaries, and coerced dnscache to run from an init.d script.  Since dnscache seems to generate a lot of logging information, I have simply directed its output to /dev/null (the default setup uses the daemon tool 'multilog' to create and rotate log files for dnscache.  I have kept the directory structure used by the default install in case you decide to install the rest of the daemon tools.
  5. There is another DNSCache home page which has some patches, mailing list archives, and links to German and Japanese dnscache pages.
  6. I do not have the rest of the stuff from http://cr.yp.to available, so DON'T ASK.  If I port any more stuff, I'll post to the mailing list & update this page :)

FILES

10/14/00  14:46          22,429  dnscache.lrp

drwxr-xr-x daemon/daemon     0 Oct 05 08:19 2000 etc/dnscache/
drwxr-xr-x daemon/daemon     0 Oct 05 08:19 2000 etc/dnscache/root/
drwxr-xr-x daemon/daemon     0 Oct 05 08:19 2000 etc/dnscache/root/ip/
-rw-r--r-- daemon/daemon     0 Jun 05 12:00 2000 etc/dnscache/root/ip/127.0.0.1
-rw-r--r-- daemon/daemon     0 Jun 06 03:06 2000 etc/dnscache/root/ip/192.168.1
drwxr-xr-x daemon/daemon     0 Oct 05 08:19 2000 etc/dnscache/root/servers/
-rw------- daemon/daemon   164 Jun 05 12:03 2000 etc/dnscache/root/servers/@
-rw-r--r-- daemon/daemon   128 Jun 05 14:19 2000 etc/dnscache/seed
-rw------- root/root       558 Jun 06 03:04 2000 etc/dnscache.conf
-rwxr-xr-x root/root       812 Jun 20 07:14 2000 etc/init.d/dnscache
-rwxr-xr-x root/root     47180 Oct 14 09:42 2000 usr/sbin/dnscache
-rw-r--r-- root/root        79 Jun 05 11:55 2000 var/lib/lrpkg/dnscache.conf
-rw-r--r-- root/root       525 Jun 27 16:02 2000 var/lib/lrpkg/dnscache.help
-rw-r--r-- root/root        94 Jun 06 03:12 2000 var/lib/lrpkg/dnscache.list
-rw-r--r-- root/root         5 Oct 14 09:43 2000 var/lib/lrpkg/dnscache.version

SOURCE

 

Local Web Statistics
Send feedback about this web site.
Last modified: December 04, 2001