A quick guide to domain name setup on Google App Engine
Getting domains (both www, and naked domains) setup properly on Google App Engine is not a straightforward affair; it has several gotchas. This quick guide summarizes the process I use with the following four actors: Enom (domain registrar), DynDNS (DNS provider), Google Apps (domain management and other apps for your domain), and Google App Engine (your actual app).
Get the necessary accounts
- Make sure you have a Google App Engine app setup and note its app id from the dashboard at appspot.com.
- Register your domain name with Enom
- Get a CustomDNS service from DynDNS.
- Get a Google Apps account.
Domain configuration (Enom)
- Configure the DNS servers to point to DynDNS. Under Manage Domain → DNS Server Settings set name servers 1 - 5 to point to ns1.mydyndns.org, ns2.mydyndns.org, etc.
DNS configuration (DynDNS)
- Add four Hostnames for the naked domain (i.e., yourdomain.com without the www) and have them point to IP addresses 126.96.36.199, 188.8.131.52, 184.108.40.206, and 220.127.116.11.
- Add CNAMES for all services you want to use Google Apps for. If you just want to use your Google App Engine app, create a CNAME ("Add Alias (CNAME)") for www.yourdomain.com and point it to ghs.google.com. I also add CNAMES for all the other Google Apps (docs, mail, start, etc. as docs.yourdomain.com, mail.yourdomain.com, etc.)
- Add the following three Mail Exchangers by clicking the Edit MX List button: ASPMX.L.GOOGLE.COM, ASPMX.L.GOOGLE.COM, ALT2.ASPMX.L.GOOGLE.COM.
- Under preferences, make sure you force activate your zone.
Google Apps configuration
- In Google Apps, make sure that your Control Panel is set to "Current version" under the Domain Settings tab. This is important. Your control panel version must not be set to "Next version".
- Go to Dashboard → Add more services (the link next to the Service Settings title) and enter your Google App Engine App ID under Other Services → Google App Engine and click the Add it now button.
- On the next screen, add the following URL: temp.yourdomain.com (do not enter yourdomain.com).
- Repeat Step 2 and this time click the Add new URL link and add yourdomain.com
- Repeat Step 2, click the Add new URL link again, and add www.yourdomain.com
- Repeat Step 2, and delete temp.yourdomain.com
Google App Engine configuration
- Sign in to your application via appspot.com.
- Click the Administration → Versions link.
- Click the Add Domain... button under the Domain Setup section
- Add yourdomain.com in the domain name box and click the Add Domain... button
That's it, having followed those -- oh, nineteen or so simple steps -- you should now have your domain setup properly for Google App Engine. Not only that but your mail and other apps should be working properly through Google Apps.