Example DNS Template for Google Apps

rezilient

New member
Joined
Sep 28, 2005
Messages
4
Hi guys.

I'm looking at the dns_a.conf and dns_mx.conf in
/usr/local/directadmin/data/templates

but it is not immediately obvious to me how to customize these templates for Google Apps. Can someone share their template so I can get Google Apps set up and working for all my users. Do I have to also customize any other files like dns_txt.conf and dns_cname.conf?

Tried searching the forums but didn't find any example of what the customized templates look like for Google Apps.

Thanks much!
 
Hello,

you need something like this:

dns_mx.conf

Code:
ALT1.ASPMX.L.GOOGLE.COM.=20
ALT2.ASPMX.L.GOOGLE.COM.=20
ASPMX.L.GOOGLE.COM.=10
ASPMX2.GOOGLEMAIL.COM.=30
ASPMX3.GOOGLEMAIL.COM.=30
ASPMX4.GOOGLEMAIL.COM.=30
ASPMX5.GOOGLEMAIL.COM.=30

dns_cname.conf

Code:
|DOMAIN|.=ghs.google.com.

dns_txt.conf

Code:
|DOMAIN|.="v=spf1 include:_spf.google.com ~all"
|DOMAIN|.="google-site-verification=<KEY_CODE_HERE>"


Should be verified.
 
dns_mx.conf
Code:
ALT1.ASPMX.L.GOOGLE.COM.=20
ALT2.ASPMX.L.GOOGLE.COM.=20
ASPMX.L.GOOGLE.COM.=10
ASPMX2.GOOGLEMAIL.COM.=30
ASPMX3.GOOGLEMAIL.COM.=30
ASPMX4.GOOGLEMAIL.COM.=30
ASPMX5.GOOGLEMAIL.COM.=30

For DirectAdmin you should use these numbers of MX-records instead: http://www.google.com/support/a/bin/answer.py?hl=en-uk&answer=61162

dns_txt.conf
Code:
|DOMAIN|.="v=spf1 include:_spf.google.com ~all"

The SPF record should look like this (change **.**.**.** with server IP):
Code:
"v=spf1 a mx ip4:**.**.**.** include:_spf.google.com ~all"
 
For DirectAdmin you should use these numbers of MX-records instead: http://www.google.com/support/a/bin/answer.py?hl=en-uk&answer=61162

Will you, please explain why? I've got those numbers (I found them on Google's page, when adding a new domain), and everything seems to be working OK.



The SPF record should look like this (change **.**.**.** with server IP):
Code:
"v=spf1 a mx ip4:**.**.**.** include:_spf.google.com ~all"

Yes, that seems to be reasonable. Thanks.
 
Will you, please explain why? I've got those numbers (I found them on Google's page, when adding a new domain), and everything seems to be working OK.

The reason to use the MX-records from the page I linked to, is because when you log in to GoogleApps admin area on the page you have the MX records listed, they do not have any example of MX records for DirectAdmin - only hidden in the help pages on the link I provided, they have official MX records for DirectAdmin.

It might work without problems using the more general MX records listed at GoogleApps admin area, I have not tested.

But those on the page I linked to, should be the official MX records to use for DirectAdmin, I think. I use them for all my customers that need help setting up GoogleApps (maybe around 50 domains), and also on my own private domains, and have never had any problems.

You have to decide wich to use your self. I only wish Google would include the instructions for DirectAdmin in the administration panel along with instructions for the other registrars.
 
Thanks for detailed answer. I've recently started using Google apps, and haven't seen this guide before.
 
Your welcome. But please note that I am not absolutely sure of what the current official MX records should be, I only assume that the most correct to use is from the help page I linked to, and have not had any problems with those. However, if the help page is outdated, I would not now if that is the case. I think we would have to ask Google Support if we want to be absolutely sure wich instructions is most correct and current for DirectAdmin.
 
Back
Top