Adding Mx Record on Linux
Mail dedicated servers will send and receive email messages on the Internet. MX records sets the mail delivery destination for a domain or subdomain. MX Entries must point to a domain and never point directly to an IP address.
An MX Record basically stands mail exchanger record which is a DNS record for linking your domain name with your email provider. This record has to be updated for using the mail services.
The syntax of MX records is used by many DNS hosting providers for MX records:
Hostname: your domain name ( for which the MX record has to be updated)
Type: MX record
Priority/Preference: number - (Always the lower the number, the higher the priority.)
Destination/Mail Server/Points to/target : your mail server.(It will be provided by your email provider )
Host Type Priority Mail Server
exampledomain.com MX 5 mail.exampledomain.com
If your domain is registered at our company then you need to follow the below instructions.
Follow the below step to update the MX record for your domain:
Step 1: First you need to Login to our WHM Panel >> go to DNS Zone Editor
Step 2: Under DNS Zone Editor module >> select your domain name from the drop down and click on Edit.
Step 3: After select your domain >> Now you will be able to see DNS Types like A, AAAA, CNAME, MX, TXT. Select MX and click on Add New Record and fill the details and click on Save changes which is present in the top.
Example with MX Record Syntax:
hostingraja.info 86400 IN MX 10 mail.hostingraja.info
IN indicates Internet
Record Type : MX (indicates Mail exchange record)
Priority : 10
Target : mail.hostingraja.info
Once it is done login to root access in the command prompt and type " service named restart ".
Any updation in DNS records will take 24-48 hours to take propagate, this is called as DNS propagation time
Also make sure that you have updated the correct MX records for your website if the MX record which have been updated wrong or if the MX records not matching to your existing hosting provider, It effects to the email’s function and facing issues like mails are not sending or receiving in other domain. It is always better to make sure the correct records are updated.
You can contact your email provider for assistance or You can check the MX records using the below link:
If you need any assistance for adding MX record, feel free to contact our technical team members as they are available 24/7 via phone call, email, ticket system or call out toll-free no 1800-123-8642. We will be happy to help you.