Skip to main content

Clear Or Refresh Your DNS Cache

Blogger custom domain publishing depends upon DNS.

Sometimes, when we have a blog published to a Google Custom Domain, we'll make a change to the domain DNS configuration and notice that our readers can see the change, but we can't.
Once again, at 6:23, someone was able to see my blog and leave a comment

Yet, moments after I tried, I was still getting the 404 error. So there seems to be some intermittent activity!
This is not an unusual report.

Problems with custom domain publishing almost always involve some sort of DNS issue.

Let's look at a hypothetical domain DNS configurations, as one example. First, current:
mydomain.com.   14400   IN      A       216.21.239.197
www.mydomain.com. 14400      IN      A       216.21.239.197 

Then, new:
mydomain.com.   14400   IN      A       64.233.179.121
mydomain.com.   14400   IN      A       72.14.207.121
www.mydomain.com. 14400      IN      CNAME   ghs.google.com. 

Note that the above addresses have long since changed. We now have a quadruplet "A" address complement - which is a bit harder to notice, casually.

A TTL of 14400 seconds (4 hours) is a bit extreme. I see mostly 3600 seconds (1 hour), sometimes 900 seconds (15 minutes), in most DNS configurations.

If the TTL for your domain is 4 hours, it could be about that long after you make the change, before you start seeing any change.

I say "about", because the age of the configuration information, as cached on your computer or server when you make the change, is relevant. If the information is 15 minutes old, then with a TTL of 14400, you'll have to wait another 13500 seconds, or 3 3/4 hours. If the information is 3 hours old, you'll wait merely another hour.

Fortunately, you can hasten that if if the cache on your computer is the bottleneck.

From a command window, enter
ipconfig /flushdns
If the DNS cache in question is on your computer, it's gone now. The next time that you try for your custom domain, it should come up in its new configuration.

Note 2 Caveats

  • If you have a caching non-authoritative DNS server that your computer retrieves DNS directly from, you'll still have to wait. The "ipconfig" command works only under Microsoft Windows, and only on the computer with the cache. If the cache is upstream from you, you're going to have to remain patient.
  • Whether or not your local DNS cache, and your upstream non-authoritative DNS server gets the updates, you still can't predict the update status of the Google non-authoritative DNS servers.

Knowing your DNS setup is a good idea, when working with custom domains. And allowing for DNS latency at Google is essential.

Comments

Popular posts from this blog

Add A Custom Redirect, If You Change A Post URL

When you rename a blog, the most that you can do, to keep the old URL useful, is to setup a stub post , with a clickable link to the new URL. Yo! The blog is now at xxxxxxx.blogspot.com!! Blogger forbids gateway blogs, and similar blog to blog redirections . When you rename a post, you can setup a custom redirect - and automatically redirect your readers to the post, under its new URL. You should take advantage of this option, if you change a post URL.

Jump Break Is Visible Only In An Index Page

Some blog owners are unsure what a Jump Break looks like, when applied to their blogs. Occasionally, in Blogger Help Forum: Get Help with an Issue , we see the confusion. Where's the Jump Break? or I added a Jump Break to several posts, but it never shows up! When asked for a screen print of what they're seeing, they may provide a image of the post, in the Post Editor Preview window - or possibly, the published post, but in post page view.

Leave Comments Here

Like any blogger, I appreciate polite comments, when they are relevant to the blog, and posted to the relevant article in the right blog . If you want to ask me a question thats relevant to blogging, but you can't find the right post to start with (I haven't written about everything blogger related, yet, nor the way things are going I don't expect to either), ask your questions here, or leave an entry in my guestbook . As noted above, please note my commenting policy . If you post a comment to this post , I will probably treat it as a "Contact Me" post . If you have an issue that's relevant to any technical issue in the blog, please leave a comment on the specific post , not here. This post is for general comments, and for non posted contact to me. If the form below does not work for you, check your third party cookies setting! For actual technical issues, note that peer support in Blogger Help Forum: Something Is Broken , or Nitecruzr Dot Net - Bloggin...