From the main Administrator menu, navigate to Server Manager → select the “DNS Administration” link. You will see a page that looks like this:
The DNS administration menu allows you to modify the DNS settings of any domain name hosted on the server. Click on the domain name you want to edit. In this example, we will click on demo.com.
Important: There are two ways to enter a hostname:
1. The full hostname followed by a period: full.hostname.com.
2. The subdomain alone: full
For example, the first record in the table above can read:
ftp A 220.127.116.11 or
ftp.demo.com. A 18.104.22.168
Both records do the exact same thing. The sections below may discuss only one method but either is acceptable.
Hint: If you are unsure how to enter a record, look at the existing records in the table for guidance.
Records Explained: A, CNAME, NS, MX, and PTR.
Address (A) records direct a hostname to a numerical IP address. For example, if you want mycomputer.demo.com to point to your home computer (which is, for example, 22.214.171.124), you would enter a record that looks like:
Important: You must put a period after the hostname. Do not put periods after IP addresses.
CNAME allows a machine to be known by one or more hostnames. There must always be an A record first, and this is known as the canonical or official name. For example:
yourdomain.com. A 192.168.0.1
Using CNAME, you can point other hostnames to the canonical (A record) address. For example:
ftp.yourdoman.com. CNAME yourdomain.com.
mail.yourdomain.com. CNAME yourdomain.com.
ssh.yourdomin.com. CNAME yourdomain.com.
CNAME records make it possible to access your domain through ftp.yourdomain.com, mail.yourdomain.com, etc. Without a proper CNAME record, you will not be able to connect to your server using such addresses.
Entering a CNAME record
If we wanted home.site-helper.com to point to site-helper.com, we could enter the record in two ways:
The first method allows you to simply enter the subdomain. Do not put a period after the subdomain name.
The second method requires you to enter the entire hostname, followed by a period.
NAMESERVER (NS) RECORDS
NS records specify the authoritative nameservers for the domain.
Entering a NS record
The first step is to delete the old NS records from the table above.
Then, enter two new nameservers records. Be sure that the nameserver hostname is followed by a period, as in this example:
Be sure to put a period after the nameserver hostname in a NS record (ns1.newnameserver.com. and not ns1.newnameserver.com ).
Free e-mail services such as everyone.net require that MX changes be made in order for their software to work. This change allows mail destined for your domain to be directed to their server. Please note that changing MX records will prevent your current POP3 accounts, forwarders, autoresponders, and mailing lists from functioning.
To change the MX record, first access (as an User) the “E-Mail Manager” from the control panel. Then, select the “MX Records” link.
First, delete the old MX record by clicking the checkbox above to the record name and click “Delete”” There should now be no MX records listed.
Next, type in the hostname, followed by a period, given to you by the e-mail provider. Then select the priority level (usually 10) from the dropdown box on the right. The priority level will also be given to you by the e-mail provider. Click “Add.”
Note: Be sure to put a period at the end of the hostname.
To restore the original MX settings, enter yourdomain.com. and priority 0 after deleting the other MX record.
Pointer records (PTR) are used for reverse lookups. For example, to make 192.168.0.1 resolve to www.yourdomain.com, the record would look like:
126.96.36.199.in-addr.arpa PTR www.yourdomain.com.
Note: The IP address is reversed in the first field. Please use a period after your hostname (second field).
The “in-addr-arpa” method is the most frequently used. In most cases you need to contact your hosting provider to set the correct PTR record for your domain. For correct working of all outgoing email this is very important!
Example DNS Records
View here an example of most common DNS Records from a webserver with DirectAdmin as Control Panel.
Need more help?
Please contact your hosting company for more assistance, or visit the DirectAdmin support forum at https://forum.directadmin.com/.