How to separate IP address of your domain

How to set a separate IP address for your domain and mailserver

If you change the IP address of your domain's A record, the IP address of your mail server automatically changes as well. This happens because the standard zone template uses a CNAME record to point mail to the A record of a domain. If you wish to assign an IP address to the mailserver which is different from the IP address for the domain's A record, follow these steps:

  1. Change the MX record to mail.$domain., where $domain. represents your domain. For example, example.com. would change to mail.example.com.

  2. Change the CNAME for mail into an A record to the IP address of the mail server.

  3. Click Save.

* note Note: You must include the trailing period after mail.example.com.

To change the zone template so that all new domains will create MX records which assign your mailserver a different IP address, follow these steps:

  1. Navigate to the Edit Zone Templates scren in WHM. ( Home >> DNS Functions >> Edit Zone Templates ).

  2. Click standard.

  3. Change %domain%. IN MX 0 %domain%. to %domain%. IN MX 0 mail.%domain%.

  4. Change mail IN CNAME %domain%. to mail IN A %IP%.

  5. Click Save.

Your mailserver's IP address is now different from your domain's main A record.

 

  • 0 Пользователи нашли это полезным
Помог ли вам данный ответ?

Связанные статьи

How to create FTP account

Add an FTP account The addition of an FTP account will allow users to access the domain's folder...

How to manage the cPanel style and branding

Download a branding style To download a branding style: 1. Click Download or Delete Branding on...

How to make a directory password protected

Password Protect a Directory To password protect your directory: Select the directory in...

How to generate/download a full backup

A full backup is a backup of all of your files, e-mail, databases, etc. To run a full backup, you...

Redirecting a domain to another

Redirecting a domain to another   To add a redirect: Use the pull-down menu to...