~ubuntu-branches/ubuntu/raring/maradns/raring

« back to all changes in this revision

Viewing changes to doc/en/text/authoritative.txt

  • Committer: Bazaar Package Importer
  • Author(s): Kai Hendry
  • Date: 2010-01-24 12:17:40 UTC
  • mfrom: (1.1.13 upstream) (10.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100124121740-a4e1fjobwaouz443
Tags: 1.4.02-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
       example.com with the IP 10.10.10.15. In other words, the
100
100
       machine with the IP 10.10.10.15 is set up to handle mail
101
101
       addressed to name@example.com, where "name" is any string
102
 
       preceeding the '@' sign.
 
102
       preceding the '@' sign.
103
103
     * Both 10.10.10.11 and 10.10.10.17 are running MaraDNS in
104
104
       authoritative mode to serve DNS requests for example.com.
105
105
 
112
112
 
113
113
 # We have two records which handle the serving of web pages.  These
114
114
 # are simple name-to-ip translations.  In other words, we have one
115
 
 # record which states "The IP for exmaple.com. is 10.10.10.12" and
 
115
 # record which states "The IP for example.com. is 10.10.10.12" and
116
116
 # another that states "The IP for www.example.com. is 10.10.10.12"
117
117
 example.com. 10.10.10.12 ~
118
118
 www.example.com. 10.10.10.12 ~
119
119
 
120
120
 # We also need to set up an IP for the machine that serves email for
121
 
 # example.com.  Becuase of how DNS is designed, we both need
 
121
 # example.com.  Because of how DNS is designed, we both need
122
122
 # a record which states "The machine which handles mail for
123
 
 # exmaple.com is called mail1.example.com" and a record which states
 
123
 # example.com is called mail1.example.com" and a record which states
124
124
 # "The IP address for mail1.example.com is 10.10.10.15":
125
125
 example.com. MX 10 mail1.example.com. ~
126
126
 mail1.example.com. 10.10.10.15 ~
128
128
   Now, to adapt this file to another zone, we need to simply make
129
129
   the following changes:
130
130
 
131
 
     * Sustitute the name example.com with the name of the domain
 
131
     * Substitute the name example.com with the name of the domain
132
132
       one wishes to administer.
133
133
     * Substitute the IP 10.10.10.12 with the IP of the machine
134
134
       running the web server for the domain.
153
153
 example.com.      MX 10 mail1.example.com. ~
154
154
 mail1.example.com.      10.10.10.19 ~
155
155
 
156
 
   Translated in english, the above lines say:
 
156
   Translated into English, the above lines say:
157
157
 
158
158
     * One name server for example.com is called ns1.example.com.
159
159
     * The IP for ns1.example.com is 10.10.10.19
215
215
   MaraDNS sees a % in a csv2 zone file, MaraDNS knows to replace
216
216
   the percent symbol with the name of the zone in question. For
217
217
   example, if the file in question is the zone file for
218
 
   example.com, the % is exanded out to "example.com.". If the zone
219
 
   file in question is for maradns.org, the % is expanded out to
220
 
   "maradns.org.". Hence, we could, provided that the zone file is
221
 
   for example.com, have a zone file like this:
 
218
   example.com, the % is expanded out to "example.com.". If the
 
219
   zone file in question is for maradns.org, the % is expanded out
 
220
   to "maradns.org.". Hence, we could, provided that the zone file
 
221
   is for example.com, have a zone file like this:
222
222
 
223
223
 # We have two records which handle the serving of web pages.  These
224
224
 # are simple name-to-ip translations.
226
226
 www.% 10.10.10.12 ~
227
227
 
228
228
 # We also need to set up an IP for the machine that serves email for
229
 
 # our zone.  Becuase of how DNS is designed, we both need
 
229
 # our zone.  Because of how DNS is designed, we both need
230
230
 # a record which states "The machine which handles mail for
231
231
 # out zone is called mail1." and a record which states
232
232
 # "The IP address for mail1. is 10.10.10.15":