Imported Debian patch 1:1.05-8
[hcoop/zz_old/debian/djbdns.git] / debian / djbdns-man / tinydns-edit.8
CommitLineData
b4588d5c
GP
1.TH tinydns-edit 8
2
3.SH NAME
4tinydns-edit \- edit the (source form of the) database served by tinydns/axfrdns
5
6.SH SYNOPSIS
7.B tinydns-edit
8.I data
9.I data.tmp
10add
11.I type
12.I name
13.I address
14
15.SH DESCRIPTION
16.B tinydns-edit
17edits the
18.I data
19file, which is the source form of the database that is compiled by
20.BR tinydns-data (8)
21and that is served by
22.BR tinydns (8)
23and
24.BR axfrdns (8).
25The update to
26.I data
27is performed atomically, by first writing the updated database content to the file
28.I data.tmp
29and then renaming
30.I data.tmp
31to
32.I data .
33The two files must, of course, reside on the same volume in order that this can be achieved.
34.PP
35On success,
36.I tinydns-edit
37returns zero. If, for any reason, an error occurs it will exit with a non-zero code and
38.I data
39will not be changed.
40.PP
41With the "add" verb,
42.I tinydns-edit
43appends to the database a record whose type is determined by
44.I type ,
45with the fully-qualified name
46.I name
47and the IP address
48.I address .
49.I type
50can be one of:
51.IP ns
52A '.' record is created. This record specifies that the domain
53.I name
54is published by a DNS content server that is listening on the IP address
55.I address .
56.IP
57The name of the DNS content server is not directly specifiable. Names are automatically assigned by
58.I tinydns-edit
59itself, following the pattern
60.I [a-z].ns.name .
61.I tinydns-edit
62will assign the first letter of the alphabet that is not already used in another '.' or '&' record as the name of a DNS content server.
63If no letters of the alphabet remain unused,
64.I tinydns-edit
65will fail.
66.IP
67If a '.' or '&' record for the domain already exists, proxy DNS servers are allowed to cache the new record for the same length of time as they are allowed to cache the existing records.
68Otherwise, proxy DNS servers are allowed to cache the record for up to 3 days.
69.IP childns
70A '&' record is created. This record specifies that queries for names in the domain
71.I name
72should be referred to a ("child") DNS content server that is listening on the IP address
73.I address .
74.IP
75The name of the DNS content server is not directly specifiable. Names are automatically assigned by
76.I tinydns-edit
77itself, following the pattern
78.I [a-z].ns.name .
79.I tinydns-edit
80will assign the first letter of the alphabet that is not already used in another '.' or '&' record as the name of a DNS content server.
81If no letters of the alphabet remain unused,
82.I tinydns-edit
83will fail.
84.IP
85If a '.' or '&' record for the domain already exists, proxy DNS servers are allowed to cache the new record for the same length of time as they are allowed to cache the existing records.
86Otherwise, proxy DNS servers are allowed to cache the record for up to 3 days.
87.IP mx
88A '@' record is created. This record specifies that mail to names in the domain
89.I name
90should be sent to an SMTP server that is listening on the IP address
91.I address .
92.IP
93The name of the SMTP server is not directly specifiable. Names are automatically assigned by
94.I tinydns-edit
95itself, following the pattern
96.I [a-z].mx.name .
97.I tinydns-edit
98will assign the first letter of the alphabet that is not already used in another '@' record as the name of an SMTP server.
99If no letters of the alphabet remain unused,
100.I tinydns-edit
101will fail.
102.IP
103It is not possible to specify the
104.I distance
105value for the SMTP server.
106.I tinydns-edit
107will leave that field blank, meaning that
108.I tinydns-data (8)
109will use whatever the default value is.
110.IP
111If a '@' record for the domain already exists, proxy DNS servers are allowed to cache the new record for the same length of time as they are allowed to cache the existing records.
112Otherwise, proxy DNS servers are allowed to cache the record for up to 1 day.
113.IP host
114A '=' record is created, that proxy DNS servers are allowed to cache for up to 1 day. This record specifies that the name
115.I name
116maps to the IP address
117.I address
118and vice versa.
119.IP
120.I tinydns-edit
121will fail if a '=' record already exists that uses either
122.I name
123or
124.I address .
125.IP alias
126A '+' record is created, that proxy DNS servers are allowed to cache for up to 1 day. This record specifies that the name
127.I name
128maps to the IP address
129.I address
130but that there is no reverse mapping.
131.IP
132Because this is an alias record,
133.I tinydns-edit
134will not fail if there happen to already be existing records that use
135.I address .
136
137.SH SEE ALSO
138tinydns-data(8),
139
140http://cr.yp.to/djbdns.html
141
142.SH AUTHOR AND MODIFICATIONS
143This manual page was created by Jonathan de Boyne Pollard on 2001-04-06.
144.PP
1452001-04-26: A new AUTHOR AND MODIFICATIONS section was added.
146.BR axfrdns (8)
147is now mentioned.
148The description of how server names were auto-generated was clarified.
149A cut-and-paste error in the description of the "mx" type was corrected.