### Adding a DNS Template

To add a DNS template:

1. Click Domain Manager on the Service Director submenu.
2. Select DNS Templates from the Domain Manager submenu. The list of DNS templates (if any) appears on the screen.
3. Click the New DNS Template button.
4. Fill the form that appears:
   1. Type the DNS template name (any alphanumerical identifier you consider convenient) into the Title field.
   2. Specify the number of records you want to add: Select the number of empty fields to be displayed from the Create drop-down menu at the bottom of the form and then click the Display button. Then fill the fields for each record as this described below.
   3. You can type the sub-domain name into the Name field. Since the form we are talking about is designed for adding different types of records, we can say that the Name field should contain the subject of the query, e.g., the address you want to use as your Internet e-mail address (for MX record), or the alias name (for CNAME record), etc.
   4. To facilitate zone files management, DNS templates are sorted by the type of hosting they can be applied to. Select the type of hosting the DNS template will be available for from the Type drop-down menu:
   - Plesk Domains - for Plesk domains only.
   - Common - for all types of hosting except Plesk domain, Plesk client, Virtuozzo Container. DNS templates of the Common type are available for Miscellaneous hosting plans, Dedicated hosting, Domain Registration hosting plans.
   - NBH Containers - name-based Virtuozzo Containers.
   - Regular Containers - Virtuozzo Containers.
   - Plesk Clients - Plesk Clients only.

     Note: You can use the %domain% placeholder in the Name field (for example, subdomain.%domain%) and the %ip% placeholder in the Host field. The placeholders will be later automatically substituted with the actual name of a domain being registered or an IP address of a domain respectively.

   1. Select the type of the resource record (A, NS, MX, or CNAME) from the DNS type drop-down menu. Please see the short description of the record types in the beginning of this section. For more information, please refer to the DNS documentation, for example, you can look at the Web.
   2. The Priority field becomes active if you select the MX record type only. The MX record priority is the digit within the range from 0 to 65535. The lower number is the higher is Mail Exchanger priority. If several MX records of different priorities were added, then mail is routed to to the lowest priority Mail Exchanger (with the greatest priority value), if it does not respond, then the higher priority Mail Exchanger is being used (with less priority value), and so on, up to the highest priority Mail Exchanger (with the least priority value).
   3. In the Host field you should indicate the answer to the query. Records are always read from the left to the right, with the subject to be queried about on the left and the answer to the query on the right. For example, for MX record you should indicate the mail server name, for CNAME record - the canonical name of the machine indicated before in the relevant A record, etc.
5. Click the Save button.

Please send us your feedback on this help page