Traditional DNS Howto - Page 4

NS Records

Next we create NS records. These specify the name servers that are responsible for our domain. You must have at least one, however it is common practice to at least list two (you can list as many as you want) - if the primary name server fails, the secondary takes over:

NS ;

Please note: the semicolon (';') does not mark the end of a line; instead it marks the beginning of a comment in a zone file. You can write

                   NS; This is my primary name server.

However, if you do not have any comments, you can as well write


MX Records

As we want to receive emails on, we must list the mail exchanger(s) for the domain. This is done with an MX record:

                   MX 10

This record says that emails for should be delivered to (which is the mailserver for the domain) with a priority of 10. You can list more than one mail exchanger:

                   MX 10
MX 20

Now if a mail is sent to, the sending mailserver tries to connect to because it has a priority of 10. If cannot be reached (for whatever reason), then the sending mailserver will try to send the mail to because it has a priority of 20 which comes next (you see: although 20 is greater than 10, it means less priority in this case).

Until now we have defined MX records for only which is good for email addresses of the form Let's say we have an email address of the form Therefore we must create an MX record for        MX 10

Please note the '.' at the end of If you do not add it, then the origin of the zone is appended to the name. For example, if you wrote         MX 10

without a '.', this would transfom to! Of course, this feature can be useful:

subdomain                         MX 10

Now we only have subdomain, but because the '.' is missing at the end, it transforms to which is what we want. So        MX 10


subdomain                         MX 10

are two notations for the same thing!

Share this page:

Suggested articles

0 Comment(s)

Add comment


From: taft