Imported Debian patch 1:1.05-8
[hcoop/zz_old/debian/djbdns.git] / debian / djbdns-man / axfrdns.8
CommitLineData
b4588d5c
GP
1.TH axfrdns 8
2
3.SH NAME
4axfrdns \- a DNS zone-transfer server.
5
6.SH DESCRIPTION
7.B axfrdns
8reads a zone-transfer request
9in DNS-over-TCP format from its standard input,
10and responds with locally configured information.
11
12.SH Configuration
13Normally
14.B axfrdns
15is set up by the
16.BR axfrdns-conf (8)
17program.
18
19.B axfrdns
20runs chrooted in the directory
21specified by the
22.I $ROOT
23environment variable,
24under the uid and gid
25specified by the
26.I $UID
27and
28.I $GID
29environment variables.
30
31Normally
32.B axfrdns
33runs under
34.BR tcpserver (1)
35to handle TCP connections on port 53 of a local IP address.
36
37.BR tcpserver (1)
38is responsible for
39rejecting connections from hosts not authorized to perform zone transfers.
40
41.B axfrdns
42can also run under secure connection tools
43offering an UCSPI-compliant interface.
44
45.B axfrdns
46looks up zone-transfer results
47in
48.IR data.cdb ,
49a binary file created by
50.BR tinydns-data (8).
51It also responds to normal client queries,
52such as SOA queries, which usually precede zone-transfer requests.
53
54.B axfrdns
55allows zone transfers
56for any zone listed in the
57.I $AXFR
58environment variable.
59
60.I $AXFR
61is a slash-separated list of domain names.
62If
63.I $AXFR
64is not set,
65.B axfrdns
66allows zone transfers for all zones
67available in
68.IR data.cdb .
69
70.B axfrdns
71aborts
72if it runs out of memory,
73or has trouble reading
74.IR data.cdb ,
75or receives a request larger than 512 bytes,
76or receives a truncated request,
77or receives a zone-transfer request disallowed by
78.IR $AXFR ,
79or receives a request not answered by
80.IR data.cdb ,
81or waits 60 seconds with nothing happening.
82
83.SH Further notes on zone transfers
84
85.B axfrdns
86provides every record it can find inside the target domain.
87This may include records in child zones.
88Some of these records (such as glue inside a child zone) are essential;
89others are not.
90It is up to the client to decide which out-of-zone records to keep.
91
92.B axfrdns
93does not provide glue records outside the target domain.
94
95The zone-transfer protocol does not support timestamps.
96If a record is scheduled to be created in the future,
97.B axfrdns
98does not send it;
99after the starting time,
100the zone-transfer client will continue claiming that the record doesn't exist,
101until it contacts
102.B axfrdns
103again.
104Similarly, if a record is scheduled to die in the future,
105.B axfrdns
106sends it (with a 2-second TTL);
107after the ending time,
108the zone-transfer client will continue providing the old record,
109until it contacts
110.B axfrdns
111again.
112
113Zone-transfer clients rely on zone serial numbers
114changing for every zone modification.
115
116.BR tinydns-data (8)
117uses the modification time of the
118.I data
119file
120as its serial number for all zones.
121Do not make more than one modification per second.
122
123BIND's zone-transfer client,
124.BR named-xfer ,
125converts zone-transfer data to zone-file format.
126Beware that zone-file format has no generic mechanism
127to express records of arbitrary types;
128
129.B named-xfer
130chokes
131if it does not recognize a record type used in
132.IR data.cdb .
133
134.SH SEE ALSO
135axfrdns-conf(8),
136tinydns-data(8),
137tcpserver(1)
138
139http://cr.yp.to/djbdns.html