Subdomain for GAE and GMail

60 views
Skip to first unread message

pdconant

unread,
Apr 7, 2014, 11:44:57 PM4/7/14
to google-a...@googlegroups.com
Is it possible to use the same subdomain for both a Google App Engine app and for GMail?  For instance, imagine I wanted to have http://myapp.mycompany.com served by GAE and also use email address m...@myapp.mycompany.com.  For the GAE app, I'd need a CNAME pointing myapp.mycompany.com to "ghs.googlehosted.com."; and for GMail to work, I'd need MX records for "myapp.mycompany.com".  But I don't believe I can have CNAME and MX records for the same subdomain. I'm no DNS expert -- I hope I'm missing something obvious to those more knowledgeable than myself.  Any ideas?

Thanks
P.

Vinny P

unread,
Apr 10, 2014, 5:19:33 AM4/10/14
to google-a...@googlegroups.com
On Mon, Apr 7, 2014 at 10:44 PM, pdconant <patrick...@gmail.com> wrote:
Is it possible to use the same subdomain for both a Google App Engine app and for GMail?  For instance, imagine I wanted to have http://myapp.mycompany.com served by GAE and also use email address m...@myapp.mycompany.com.  For the GAE app, I'd need a CNAME pointing myapp.mycompany.com to "ghs.googlehosted.com."; and for GMail to work, I'd need MX records for "myapp.mycompany.com".  But I don't believe I can have CNAME and MX records for the same subdomain. I'm no DNS expert -- I hope I'm missing something obvious to those more knowledgeable than myself.  Any ideas?



 As you noted, it's difficult to have both a CNAME and MX records for the same subdomain. Here's a detailed explanation of the issue: http://serverfault.com/questions/18000/dns-subdomains-that-require-both-an-mx-record-and-a-cname 

Unfortunately there's no way to avoid this problem, other than to violate best practices and RFCs (as the link above describes). You'll have to find a different way to issue email addresses - for example, you could do me.m...@mycompany.com, me+m...@mycompany.com, or purchase a whole different domain name for email and do m...@uniqueappandcompanyname.com 
 
 
-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

Barry Hunter

unread,
Apr 10, 2014, 6:49:01 AM4/10/14
to google-appengine
On 10 April 2014 10:19, Vinny P <vinn...@gmail.com> wrote:
On Mon, Apr 7, 2014 at 10:44 PM, pdconant <patrick...@gmail.com> wrote:

Is it possible to use the same subdomain for both a Google App Engine app and for GMail?  For instance, imagine I wanted to have http://myapp.mycompany.com served by GAE and also use email address m...@myapp.mycompany.com.  For the GAE app, I'd need a CNAME pointing myapp.mycompany.com to "ghs.googlehosted.com."; and for GMail to work, I'd need MX records for "myapp.mycompany.com".  But I don't believe I can have CNAME and MX records for the same subdomain. I'm no DNS expert -- I hope I'm missing something obvious to those more knowledgeable than myself.  Any ideas?



 As you noted, it's difficult to have both a CNAME and MX records for the same subdomain. Here's a detailed explanation of the issue: http://serverfault.com/questions/18000/dns-subdomains-that-require-both-an-mx-record-and-a-cname 

Unfortunately there's no way to avoid this problem,


Or can just find a DNS provider that supports ALIAS records (sort of fake CNAMES, where the nameserver does the resolution, rather than a just returning a pointer) 



patrick conant

unread,
Apr 11, 2014, 3:24:42 PM4/11/14
to google-a...@googlegroups.com
Thanks, Vinny and Barry.  I followed the pointer to DNSimple, and confirmed that they'll be able to meet my needs with a DNS Alias. Perfect!  I appreciate the help.

-Pat.



--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/IqRgUWK8Ouo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages