Changing the primary domain name on a Google Apps account is a non-trivial process. I recently needed to do this for a customer, and created a console application that makes the job easier.
This works on OS X and Linux; Windows support is unknown (and will not be tested by me). It’s written in Go, so you will need to have a Go development environment set up to build or run it.
Continue reading Changing Primary Domain for a Google Apps account