Imported Debian patch 1:1.05-8
[hcoop/zz_old/debian/djbdns.git] / debian / djbdns-man / axfr-get.8
CommitLineData
b4588d5c
GP
1.TH axfr-get 8
2
3.SH NAME
4axfr-get \- a DNS zone-transfer client.
5
6It sends a zone-transfer request
7in DNS-over-TCP format to descriptor 7,
8reads the results from descriptor 6,
9and saves the results in a file.
10
11.SH SYNOPSIS
12Normally
13.B axfr-get
14is run under
15.BR tcpclient (1),
16which sets up descriptors 6 and 7 as a TCP connection to a remote host.
17
18.B axfr-get
19.I z
20.I fn
21.I fn.tmp
22
23.SH DESCRIPTION
24.B axfr-get
25performs a zone transfer for domain
26.IR z .
27It writes the results to
28.I fn.tmp
29in a format that can be used as input to
30.BR tinydns-data (8).
31If the zone transfer completes successfully,
32.B axfr-get
33atomically renames
34.I fn.tmp
35as
36.IR fn .
37
38.I fn.tmp
39and
40.I fn
41must be on the same filesystem.
42
43.B axfr-get
44writes the zone serial number as a comment at the top of
45.IR fn.tmp .
46It skips the zone transfer,
47leaving
48.I fn
49alone,
50if
51.I fn
52already exists,
53
54.I fn
55has a serial number
56matching the zone serial number,
57and both serial numbers are nonzero.
58
59Zone transfers often include duplicate records.
60You should feed the
61.B axfr-get
62results through
63sort -u.
64
65.B axfr-get
66discards all records outside the domain
67.IR z .
68It accepts records in child zones,
69but it marks all child zones as non-authoritative, so
70.BR tinydns (8)
71will not report those records except as glue.
72If you plan to merge the
73.B axfr-get
74results
75for a domain and a child of the same domain,
76creating a file authoritative for both zones,
77make sure to eliminate records in the first output
78that are within the child zone.
79
80.B axfr-get
81will accept arbitrarily large zone transfers.
82To limit the maximum file size to 1 megabyte,
83run
84.B axfr-get
85under
86.BR softlimit
87\-f 1048576.
88
89.SH Compatibility notes
90
91.B axfr-get
92handles
93BIND's RFC-1034-violating multiple-answers zone-transfer format.
94
95.B axfr-get
96does not precisely simulate BIND's handling of
97.IR *.dom .
98Under BIND, records for
99.I *.dom
100do not apply to
101.I y.dom
102or
103.I anything.y.dom
104if there is a normal record for
105.IR x.y.dom .
106With
107.B axfr-get
108and
109.BR tinydns (8),
110the records apply to
111.I y.dom
112and
113.I anything.y.dom
114except
115.IR x.y.dom .
116
117.B axfr-get
118does not precisely simulate BIND's handling of multiple IP addresses
119for a single name.
120When there are more than 8 addresses,
121.BR tinydns (8)
122selects a random set of 8 for each query.
123
124.SH SEE ALSO
125axfrdns(8),
126tinydns(8),
127tinydns-data(8),
128tcpclient(1),
129softlimit(8)
130http://cr.yp.to/djbdns.html