3

Recently i had to point my domain name to a network on Ning.com to map and merge the site with the domain, so i had to add an A and CNAME record. This disconnected the link between my domain and my web host and because of this my friends cant access their email anymore. Ning doesnt offer webmail either. And im not sure if i want to use Google Apps.

Is there a way i can retain the new domain pointer to the network on Ning.com and a pointer to my web host for the webmail? Or is there any other options i can take?

Thanks you so much :)

Jonathan
  • 165
  • 7

2 Answers2

3

Yes. This is very commonplace. You need to use an MX record (Mail Exchanger) to indicate that you want your emails to go to a different location.

The rules for MX records are as follows:

  • They must point to an A Record
  • They must point to an A Record, not an IP Address
  • They must point to an A Record, not a CName

So if your mail server already has an A record, point it to that. Otherwise, create a new A record (generally mail) and point your MX to mail. Remember that if you're pointing your MX record to a domain that's outside the current zone, you need to put a . on the end of it.

E.g. if your domain is example.com and your mail server is mail.example.com then you can point your MX record to mail.

However, if your mail server is mail.otherdomain.com then you need to point your MX record to mail.otherdomain.com.

Mark Henderson
  • 68,316
  • 31
  • 175
  • 255
  • Hi, thanks for your reply. My web host is lunarpages (shared hosting). Does this make a difference? I know when i log into my webmail with my other domains hosted on the account i have to go to https://opal.lunarbreeze.com:2083/ - so can i use this as the A record? – Jonathan Sep 03 '10 at 00:02
  • I don't know if I can answer that question for you, you'll need to contact your email provider to ask them what the MX should be. – Mark Henderson Sep 03 '10 at 03:12
  • I tried with GoDaddy, it seems that is useless the point at the end of the MX, indeed when you save the rule, the point is not shown. – NineCattoRules Aug 04 '15 at 16:02
  • @Simone not shown and "useless" are two different things. Godaddy is designed for people who are not very technically competent, so I'm guessing that they choose not to show the `.` so as not to confuse people. They probably also figure out for themselves whether or not to add the `.` to the ends of records in case you don't append it yourself. – Mark Henderson Aug 04 '15 at 21:22
0

Use an MX record but NEVER EVER use a CNAME on a domain. It violates the structural basis of DNS. A CNAME, or Canonical Name, is like a synonym in DNS. And DNS is hierarchical.

So saying foo.com is a CNAME to bar.com will invalidate all hosts such as xyzzy.foo.com and all MX records in foo.com. It effectively replaces foo.com with bar.com.

This is what I was taught when I was working on DNS in the 90s, at least. The advise has served me well in the 12-13 years since I heard it.

Data Scavenger
  • 477
  • 3
  • 9