Google Apps BIND Zone File

Setting up BIND DNS Server for Google Apps is a streamlined process if you have access to your BIND Settings in /etc/bind (YMMV).

The following zone file did the job for me (replace example.com with your domain name and myhost.com with your hosting primary domain):

$TTL   86400
$ORIGIN example.com.
@                                IN SOA   ns1.myhost.com. dns.myhost.com (
                                            2007123101
                                            2H
                                            15M
                                            1W
                                            1D )
                                 IN NS                     ns1.myhost.com.
                                 IN NS                     ns2.myhost.com.
@                                IN A                      67.18.176.50
www                              IN CNAME                  @
ftp                              IN CNAME                  example.com.
googleffffffffb0946661           IN CNAME                  google.com.
mail                             IN CNAME                  ghs.google.com.
calendar                         IN CNAME                  ghs.google.com.
docs                             IN CNAME                  ghs.google.com.
sites                            IN CNAME                  ghs.google.com.
start                            IN CNAME                  ghs.google.com.
@                                IN MX      1              aspmx.l.google.com.
@                                IN MX      3              alt1.aspmx.l.google.com.
@                                IN MX      3              alt2.aspmx.l.google.com.
@                                IN MX      5              aspmx2.googlemail.com.
@                                IN MX      5              aspmx3.googlemail.com.
@                                IN MX      5              aspmx4.googlemail.com.
@                                IN MX      5              aspmx5.googlemail.com.
                                 IN TXT                    "v=spf1 ip4:67.18.176.50 include:gmail.com~all
include:example.com~all ~all"
_xmpp-server._tcp.example.com.    IN SRV     5   0   5269   xmpp-server.l.google.com.
_xmpp-server._tcp.example.com.    IN SRV    20   0   5269   xmpp-server1.l.google.com.
_xmpp-server._tcp.example.com.    IN SRV    20   0   5269   xmpp-server2.l.google.com.
_xmpp-server._tcp.example.com.    IN SRV    20   0   5269   xmpp-server3.l.google.com.
_xmpp-server._tcp.example.com.    IN SRV    20   0   5269   xmpp-server4.l.google.com.
_jabber._tcp.example.com.         IN SRV     5   0   5269   xmpp-server.l.google.com.
_jabber._tcp.example.com.         IN SRV    20   0   5269   xmpp-server1.l.google.com.
_jabber._tcp.example.com.         IN SRV    20   0   5269   xmpp-server2.l.google.com.
_jabber._tcp.example.com.         IN SRV    20   0   5269   xmpp-server3.l.google.com.
_jabber._tcp.example.com.         IN SRV    20   0   5269   xmpp-server4.l.google.com.

thanks that helped me a lot :D cheers
I understand the purpose of everything within the named.conf until the _xmpp-server._tcp.example.com IN SRV If you are a single proprietor that is only using an Instant Messenger client, say gaim, is this later section useful? Do you have to install an instant messaging server/daemon for it to useful in your named.conf?

About Me

I am Omar. An OpenSource enthusiast, I do Drupal contributing and service providing. Get some more boring details here. You may contact me for any ideas, questions or help.

Tags

Online

There are currently 0 users and 1 guest online.
Powered by Drupal, an open source content management system