Most people use email with their domains. To use email, we need a Mail Exchange (MX) record so any domain email is sent to the right place (whether that is a mail server on the slice or an external mail provider).
Let's set that up now.
The example in this article is a very simple one. I will do a separate article on setting up MX records for Google Apps.
The procedure shown below uses a subdomain called 'mail' and the MX record points to that subdomain.
If you use an external mail agency (such as fusemail or fastmail), then leave out the A-record creation and point the MX record as directed by your provider.
So, log into the SliceManager at https://manage.slicehost.com and navigate to the DNS tab:
Now click on the 'records' link next to your domain.
If you haven't created a zone for your domain, then refer to this article.
You should already have the base records shown here:
Click on the 'new record' link.
Firstly we need to create a subdomain A Record called 'mail'. The MX record will be directed there.
Again, if you are using an external mail agency, then skip this step. This is only for those who plan on running a mail server on their Slice.
In the fields I entered:
Done. The subdomain record is now complete.
Next we need to set an MX Record. Again, click 'new record' and select MX Record from the 'type' drop down box:
In the fields I entered:
Name: mynewdomain.com. (Note the trailing period '.')
Data: mail.mynewdomain.com. (Note the trailing period '.')
Auxiliary Info: 0
Unless you have specific requirements to change the Auxiliary Info, leave it at 0.
If you use an external mail agency, they may suggest other values, in which case, follow their advice.
Cool. Now we only need to wait for the DNS records to propagate.
However, it would be nice to check the records are correct and we haven't made a typo somewhere.
No problem, we can use the 'dig' command (see the introduction to dig article for more info),
So a simple query of the DNS servers for our MX record would be:
dig @dns1.stabletransit.com mynewdomain.com MX
The 'question' and 'answer' part of the output is as follows:
;; QUESTION SECTION: ;mynewdomain.com. IN MX ;; ANSWER SECTION: mynewdomain.com. 86400 IN MX 0 mail.mynewdomain.com.
Nice. All the values are as expected.
We've gone into some detail here but setting MX records for your domain is nice and straight forward using the SliceManager.
Once you have set a record, it is always a good idea to check the values with a simple 'dig' command.