Imported Debian patch 1:1.05-8
[hcoop/zz_old/debian/djbdns.git] / debian / djbdns-man / dnscache-conf.8
CommitLineData
b4588d5c
GP
1.TH dnscache-conf 8
2
3.SH NAME
4dnscache-conf \- sets up a DNS cache service.
5
6.SH SYNOPSIS
7.B dnscache-conf
8.I acct
9.I logacct
10.I D
11[
12.I ip
13]
14
15.SH DESCRIPTION
16This is a reference page.
17For tutorial information, see the instructions for
18.br
19.B workstations
20(http://cr.yp.to/djbdns/run-cache.html),
21.br
22.B home computers
23(http://cr.yp.to/djbdns/run-cache-home.html),
24.br
25.B external caches
26(http://cr.yp.to/djbdns/run-cache-x.html),
27or
28.br
29.B upgrading from BIND
30(http://cr.yp.to/djbdns/run-cache-bind-1.html).
31
32.B dnscache-conf
33creates a service directory
34.I D
35that runs
36.BR dnscache (8).
37The name
38.I D
39must start with a slash
40and must not contain any special characters.
41Normally
42.I D
43is
44.IR /etc/dnscache .
45
46You can run the service under
47.BR svscan (8)
48by using the
49.BR update-service (8)
50program on Debian GNU/Linux
51
52update-service --add
53.I D
54
55or by creating a symbolic link in the
56.BR svscan (8)
57directory (normally /service or /etc/service), e.g.:
58
59ln -s
60.I D
61/service
62
63The service will start within five seconds,
64and will be restarted upon reboot.
65You can use
66.BR svc (8)
67to control the service.
68
69.B dnscache-conf
70arranges for
71.BR dnscache (8)
72to chroot to
73.IR D /root
74and to run under the uid and gid of
75.IR acct .
76The name
77.I acct
78must not contain any special characters.
79
80.B dnscache-conf
81arranges for
82.BR dnscache (8)
83to listen for UDP packets and TCP connections on port 53 of
84.IR ip .
85
86.I ip
87is optional;
88if it is not supplied,
89.B dnscache-conf
90arranges for
91.BR dnscache (8)
92to listen on 127.0.0.1.
93
94.B dnscache-conf
95creates
96.IR D /root/ip/127.0.0.1
97so that
98.BR dnscache (8)
99will accept queries from 127.0.0.1.
100
101.B dnscache-conf
102puts 128 bytes of not-particularly-secret data
103into
104.IR D /seed
105and arranges for
106.BR dnscache (8)
107to pass
108.IR D /seed
109to
110.BR dns_random_init (3).
111If your system has a good source of random data,
112you can replace
113.IR D /seed
114with 128 bytes of data from that source.
115
116.B dnscache-conf
117creates an automatically rotated log directory in
118.IR D /log/main.
119The logs are owned by
120.IR logacct .
121The corresponding
122.BR multilog (8)
123processes run under the uid and gid of
124.IR logacct .
125The name
126.I logacct
127must not contain any special characters.
128
129.SH SEE ALSO
130dnscache(8),
131svscan(8),
132svc(8),
133multilog(8),
134axfrdns-conf(8),
135rbldns-conf(8),
136tinydns-conf(8),
137walldns-conf(8),
138update-service(8)
139
140http://cr.yp.to/djbdns.html