11

I'm not too experienced with DNS records and I'm trying to point a www subdomain to Google App Engine via the registrar gandi.net.

When updating the CNAME record to direct traffic to ghs.google.com, is it critical that there be a period at the end of ghs.google.com in the zone file?

Currently the raw zone file line looks like this:

www 3600 IN CNAME ghs.google.com.

Thanks!

Garen Checkley
  • 5,512
  • 6
  • 22
  • 24

1 Answers1

22

Yes, you need to have the trailing dot.

You enter the entire hostname followed by a period when the hostname is not inside your domain. Since google is outside your domain, you need the "extra" dot.

For example (using example.com as our domain), with the trailing dot, the CNAME would redirect to ghs.google.com. Without the trailing dot, we'd end up atghs.google.com.example.com, which isn't what you want.

Ezra
  • 7,552
  • 1
  • 24
  • 28
  • 1
    Thanks, exactly the explanation I was looking for. – Garen Checkley Jan 13 '12 at 20:14
  • 3
    Most DNS admin tools add the tailing DOT by themselves nowadays. Nevertheless it is a good habit to write it. It's like the preceding slash in /file/paths/and/names – max Jan 13 '12 at 20:50