View Full Version : Separate nameservers

03-14-2010, 12:09 AM
Hi all it's been a while since I've posted on here.

I doing a web site for a my boss and he has a web domain already, but the company the domain is registered with does not have a decent hosting package. He is using the account for E-mail purposes only.

I was wondering if we were to just add a couple nameserver entries pointed to my own hosting account, will it work for both E-mail AND web hosting with both functions on separate servers?

I want to avoid having him switch his domain to a different company?


03-14-2010, 05:02 AM

Yes - that should be easily accomplished.

What you'll need to do is modify the DNS records (also called modifying the DNS zone) to specify that web traffic goes to one IP (your hosting provider) and email traffic goes to another IP (his domain registrar). This is not the same as adding more name servers to the domain through the registrar's control panel. That will actually break the domain and prevent traffic from working correctly. Most domain registrars have a built-in check to ensure that name servers from multiple providers are not assigned to a single domain.

When modifying the DNS records, you're going to want to focus on changing 'A' records for domain.com and www.domain.com. These should be changed to point to the IP address of the web hosting provider you are with.

You will want to ensure that the mail.domain.com (and sometimes webmail.domain.com) 'A' records remain pointed to the current IP (where he already has email services).


domain.com A
www.domain.com A
mail.domain.com A
domain.com MX mail.domain.com


domain.com A
www.domain.com A
mail.domain.com A
domain.com MX mail.domain.com

This is assuming that the DNS zone for the domain is configured in a fairly standard manner. The mail.domain.com should be an 'A' record - not a 'CNAME'. And there should be an 'MX' record pointing towards mail.domain.com as well.

Of course this is all dependent on the current domain registrar allowing DNS zone modifications - most do these days.

There are several alternative forms that the DNS zone might be configured in - if you have questions once you take a look, feel free to post :)

- C. Aaron Smith