Setup DNS for a Mail Server
DNS or Domain Name Server is used to connect your domain names to web servers. The most basic and common DNS records like CNAME and A records are used to create a mail server. In the section below, we will be using the CNAME, TXT, and Mail Exchange (MX) records.

CNAME is a type of resource record that connects a domain name to another and Mail Exchange or MX records will help you with the address where the email should be delivered.
Here, we’ll be using the below-listed information to Setup DNS for a Mail Server.
CNAME
Name: mail IP address: 166.62.119.230
MX
Entry 0: mail mail.sysof.com
Entry 10: mail mail.sysof.com
Text
mail v=spf1 a mx ptr a:dedrelay.secureserver.net include:secureserver.net ~all
Now, let’s see how to set up DNS for Mail Server using the godaddy.com domain.
- First, make sure that you have a domain name in godaddy.com.
- If not, create one and then continue the process.
- Open your computer’s default web browser.
- Go to the godaddy.com web page.
- Sign in to your account.
- Go to the My Account section.
- Expand the Domains tab.
- If you have multiple domain names, then select the one you wish to configure.
- Click the Manage button beside the selected domain name.
- In the window that opens next, go to the DNS ZONE FILE tab.
Configuring the CNAME record
- Click the Add Record command line.
- Now, a pop-up dialog box titled ADD ZONE RECORD will open.
- Select the CNAME record from the RECORD TYPE drop-down menu.
- In the HOST field, enter the CNAME record’s name, which is mail.
- Enter @ in the POINTS TO field.
- Select TTS from the drop-down menu.
- Click the FINISH button.
- Now, you could see the newly added CNAME record in the ZONE FILE window.
Configuring the Mail Exchange (MX)
- Now, click the Add Record command line again in the ZONE File window.
- This time, select the MX (Mail Exchange) option from the RECORD TYPE drop-down menu.
- In the HOST field, enter @.
- Similarly, in the POINTS TO field, type mail.sysof.com.
- In the PRIORITY field, type 10 and set the TTL preferences as per your desire.
- Click the FINISH button followed by Save Changes.
- Now, add one more Priority 0 to the MX record type by referring to the instructions given above.
Adding the TXT record
- Click the Add Record command line.
- Select the TXT (Text) option from the drop-down menu.
- Enter @ in the HOST field.
- In the TXT VALUE field, type the following entry: mail v=spf1 a mx ptr a:dedrelay.secureserver.net include:secureserver.net ~all.
- Select the required TTL option from the drop-down menu.
- Click the FINISH button followed by Save Changes.
You have now successfully configured the Setup DNS for a Mail Server.