Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to point my domain to cPanel for hosting and Google Apps for email and same time I want the domain to ignore mx entry on the server so if the server goes down I can still receiving emails to Google Apps

Any Ideas?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

If you just want Google to handle your mail, and bypass your server all together, just edit your domain's DNS settings with Google's MX records, while pointing everything else to the cPanel server.

Here's what a BIND config file looks like on one of the domains I manage that does just this (slightly modified):

@               IN      MX      1       ASPMX.L.GOOGLE.COM.
@               IN      MX      5       ALT1.ASPMX.L.GOOGLE.COM.
@               IN      MX      5       ALT2.ASPMX.L.GOOGLE.COM.
@               IN      MX      10      ASPMX2.GOOGLEMAIL.COM.
@               IN      MX      10      ASPMX3.GOOGLEMAIL.COM.
@               IN      A       {cPanel IP Address}
www             IN      A       {IP Address}

You can edit www with a wildcard such as...

 *.            IN      A       {IP Address}
share|improve this answer
OK, But this way if the server goes down I will not be able to receive E-Mails –  Mohamed Atef Dec 17 '11 at 17:46
That's why it is an absolute requirement to have two different name servers - so that if 1 name server goes down, your domain will still resolve. If you're using cPanel as your nameserver, then I recommend at least using your Domain Registrar as your secondary nameserver - most Domain Registrars provide some functionality, anyway. –  David W Dec 17 '11 at 17:49
My domain registered at Netfirms.. When I added Google Apps MX to the domain and then I shut down the server it hasn't resolved the MX –  Mohamed Atef Dec 17 '11 at 17:52
Judging from this discussion, it sounds like you're either way in over your head, or need to ask another question on the main site in order to get all the help you need. –  TylerShads Dec 17 '11 at 18:30
+1. This discussion is getting out of the scope of the original question, so I think you should either ask a new question, or contact your Domain Registrar's support to help get the DNS settings implemented properly through their site. –  David W Dec 17 '11 at 18:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.