dnscache(8) - Linux man page
Name
dnscache - djbdns DNS cache daemon.
Synopsis
dnscache [OPTIONS]
Description
dnscache is a program used to map a given domain name to it's IP address and vice versa. When invoked, dnscache reads from the configuration file and listens on TCP/UDP port 53 for the incoming requests. dnscache is a part of the djbdns project, originally written by the eminent author of qmail, Dr. D J Bernstein. djbdns is a collection of programs, together which form a Domain Name System(DNS for short) as instructed in RFC-1034, 1035.
Typically dnscache accepts incoming requests only from the localhost(127.0.0.1). To accept requests from external machine or subnet, touch(1) a file with the name same as an IP address of the machine or subnet, under the 'ip/' directory listed below. So dnscache would accept a packet from IP address 1.2.3.4, if only it sees a file named 1.2.3.4 OR 1.2.3 OR 1.2 OR 1. under the 'ip/' directory.
To resolve a domain name, dnscache contacts the name servers listed by the files under 'servers/' directory. File '@' lists the root name servers. dnscache would contact servers listed in the 'servers/mydomain.com' file, to resolve domain names that end with mydomain.com, like say: mail.mydomain.com or irc.mydomain.com etc.
Note: these files list IP addresses of name servers one on each line.
Options
-d <value>
- print debug messages as per the debug level 1, 2 or 3.
- -D
run as a daemon.
- -h --help
- print this help.
- -v --version
- print version information.
Files
/etc/ndjbdns/ip/ /etc/ndjbdns/servers/ /etc/ndjbdns/dnscache.conf
/var/log/dnscached.log
Bugs
Report bugs to <pj.pandit@yahoo.co.in>
Author
Prasad J Pandit