#1  
Old 27th July 2009, 16:58
Wandering-Aimlessly Wandering-Aimlessly is offline
Junior Member
 
Join Date: Jul 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default CNAME and MX records

Hi, I have been doing some reading but seem to find conflicting info.

I host a domain whilst the website is being maintained on another by another company (complicated story).

I still host the email and do spam filtering and I am using "A" records for "www.domain.com" and "domain.com"

The other company will soon ask me to change the DNS to use a CNAME for the website.

The question is, can I still set up a CNAME for "www.domain.com" and "domain.com" whilst still having the email remain on my server ?

Geee, I do hope that makes sense !


Thanks for reading.
Reply With Quote
Sponsored Links
  #2  
Old 28th July 2009, 14:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Yes, but make sure that your MX record points to an A record (CNAMEs are not allowed for MX record). For example, you could create an A record for mail.domain.com which points to your server, and then you change the MX record so that it points to mail.domain.com.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 28th July 2009, 15:52
Wandering-Aimlessly Wandering-Aimlessly is offline
Junior Member
 
Join Date: Jul 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Falko.

So, just to be sure I understand correctly:

www.domain.com IN CNAME anotherdomain.com
domain.com IN CNAME anotherdomain.com

Will cause any access to the website will go to the hosting for anotherdomain.com



And :-

mail.domain.com. IN A 123.123.123.123
domain.com. IN MX 5 mail.domain.com.

Where 123.123.123.123 is the IP where this record exists will cause the email to stay on this server.


Sorry to be a pain, I really do appreciate your help.
Reply With Quote
  #4  
Old 29th July 2009, 15:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

Quote:
Originally Posted by Wandering-Aimlessly View Post
Thanks Falko.

So, just to be sure I understand correctly:

www.domain.com IN CNAME anotherdomain.com
domain.com IN CNAME anotherdomain.com

Will cause any access to the website will go to the hosting for anotherdomain.com
It just means that requests for www.domain.com and domain.com go to the same server where anotherdomain.com is, but it doesn't mean you will see the contents of anotherdomain.com in your browser. That is up to the http server configuration.



Quote:
Originally Posted by Wandering-Aimlessly View Post
And :-

mail.domain.com. IN A 123.123.123.123
domain.com. IN MX 5 mail.domain.com.

Where 123.123.123.123 is the IP where this record exists will cause the email to stay on this server.
Yes.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:30.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.