Customizing the Default Template in the Plesk Control
Panel
The default templates for DNS in Plesk may not
suit your needs for general hosting. Use of CNAMEs is generally frowned upon in the
community, but is not considered completely incorrect. In particular it is not a considered
a good idea to use a CNAME (canonical name) as an MX (mail exchanger) host.
1. Log in to your control panel as admin
2. Click on the SERVER link
3. Under Services click on DNS link.
4. SSH in to your server as any user and su to root
(type su - rootpassword)
5. You will see an entry similar to:
mail. <domain>. CNAME <domain>.
Remove the CNAME for mail
6. You will see an entry similar to:
<domain>. NS ns. <domain>.
<domain>. NS ns1. <domain>.
Remove them
7. Create an A record for mail
Select DNS record type A from the list and click ADD
Enter domain name:* mail .<domain>.
Record Type: A
Enter IP Address:* <ip>
You can type the IP address where we have <ip> instead of <ip>
8. Create nameserver records for the template
<domain>. NS ns. yourdomain. net.
<domain>. NS ns1. yourdomain. net.
Select DNS record type NS from the list and click ADD
Enter domain name:* .<domain>.
<-leave the box blank
Record Type: NS
Enter nameserver:* ns.yourdomain.net <-enter your
nameserver
Repeat for ns1.yourdomain.net
9 Remove the CNAME for www. <domain>. <domain>.
10. Create an A record for www.<domain>.
Select DNS record type A from the list and click ADD
Enter domain name:* www .<domain>.
Record Type: A
Enter IP Address:* <ip>
You can type the IP address where we have <ip> instead of <ip>
11. Create a new domain and test out your DNS using nslookup or dig
When you are done you should have something that looks like this:
<domain>. NS ns. yourdomain. net.
<domain>. NS ns1. yourdomain. net.
<domain>. A <ip>
webmail. <domain>. A <ip>
mail. <domain>. A <ip>
ftp. <domain>. CNAME <domain>.
<domain>. MX 10 mail. <domain>.
Important: If you are hosting DNS for the nameserver on this server then
you must add the domain in as a web site. You will need to manually add A records for ns and
ns1.yourdomain.net and you will also need to create a HOST record at the domain registrar
for these as well. At OpenSRS you select "Create a Name Server based on this domain" If Im1
is providing slave DNS then you also need the IP address of the slave DNS server. Contact
our support team for help with this.