Pages

Sunday, September 25, 2016

Set up a custom domain in Blogger

 
Set up your domain with your blog

When you buy a domain from a domain provider, you can set up your domain and manage its settings in Blogger.

Pre-requisites:
  • Custom domain from a domain provider.

Set up your domain in Blogger
  • Sign in to Blogger.
  • At the top left, select a blog.
  • In the left menu, click Settings.
  • Under “Publishing,” click Custom domain.
  • Enter the URL of the domain that you bought.
  • Click Save.
  • You get an error with 2 CNAMEs:
    • Blog CNAME: For name, enter the name as the subdomain, like "blog." or "www." For destination, enter “ghs.google.com.”
    • Security CNAME: “Name: XXX, Destination: XXX.” This is different for each person and is specific to your blog and your Google Account.
    • Example:


Set up your domain provider settings
  • Go to your domain provider’s website. ex: Godaddy.com
  • Find the Domain Name System (DNS) in the control panel.
  • Add two CNAME records accordantly.
    • Record1
      • Type: CNAME
      • Name: www
      • Value:  ghs.google.com
      • TTL: 1 Hour
    • Record2
      • Type: CNAME
      • Name: 3lxxxtlj4a
      • Value:  gv-uxxxxoerhv7e.dv.googlehosted.com.
      • TTL: 1 Hour
  • Note: To activate your DNS settings, wait at least one hour. Because TTL value for the CNAME records are 1 hour.
  • Go back to Blogger > Settings > and Set up your domain in Blogger.

Redirect URL without subdomain to your blog’s URL
  • To redirect your readers from “mydomain.com” to “www.mydomain.com,” set up a naked redirect:
  • Go to your domain provider’s website.
  • Open your DNS settings.
  • Add these 4 A-records that point to Google IPs. If A-records for "mydomain.com" already exist, you should remove the existing A-records.
    • 216.239.32.21
    • 216.239.34.21
    • 216.239.36.21
    • 216.239.38.21
  • Sign in to Blogger.
  • In the top left, select a blog.
  • From the menu on the left, click Settings.
  • Under "Publishing," turn on Redirect domain (mydomain.com to www.mydomain.com).

Important: It may take up to 24 hours for your “blogspot.com” address to redirect you to your custom domain.


Below looks like all the DNS records in DNS Provider website after setup correctly.


Fix issues with custom domain setup
  • If you have problems, try these steps:
  • When you set up your domain, you may not have to enter the 2 CNAMEs.
  • Make sure the "Name, Label, or Host" CNAME is correct.
  • If your custom domain doesn’t work, wait before you try the steps again. If you have problems, contact your domain provider.

Thank You!