I’m curious how other web developers and admins handle this – particularly for blogs and similar things that accept user comments/submissions.
I’m in the process of moving several sites from one hosting provider to another. Of course this means having to update the DNS records. I’m also switching to the new provider’s name servers.
After having done many site moves over the years, I tried to make sure that I’d have minimal DNS issues:
- On Friday and Saturday (three to four days ago), I setup the entries on the new name servers and set the TTL s very low (five minutes).
- Late Saturday, I pointed the domain registrar to the new name servers.
- On Sunday and Monday (one to two days ago), I changed the domain records to point to the new IP address.
Most clients picked up the change within an hour. My home provider, almost a day later, seems to be ignoring the TTLs that I set. I flushed my DNS and rebooted my router, just to be sure, then directly queried my ISP’s DNS servers and still received the old entries. Every other provider that I have access to updated very quickly, but I verified that others that use my ISP had a similar experience. For what it matters, it is a smaller, regional ISP and not one of the big boys – just happens to be what’s available where I live.
Doing a quick Google, it sounds like this isn’t necessarily uncommon among ISPs – especially smaller ones.
When I was working with static web sites, this wasn’t a big deal – I’d simply leave both copies of the site up for a few days. Now, however, most of the sites in question allow comment submission and other forms of content submissions. That means that users affected by similarly ignorant ISPs could be commenting on the old version of the site.
In my case, since I have full control over the database server and the firewall protecting it, I could point the old copy of the site to the new database, so that any comments/submissions would post to the new database and appear on both sites. Unfortunately, this isn’t always an available option.
So … has anyone come up with a clever way to take this into account?
P.S. I did switch my router to use Google’s DNS, which got it working for me, but I know that most users will simply use their ISP’s defaults.