Skip to main content

On subdomains, DNS and explodery bits

You might have noticed a minor change in this blog. Well, a fairly major change. I've renamed it to use one of the various random domains I own rather than the rather naff blogspot URL. This is a fairly simple configuration in Blogger blogs, but it's been something of a nightmare getting my 1and1 hosted domain to work.

The problem stems from the requirement to use Google's own DNS servers for it, coupled with the fact that Blogger won't let you host a blog on a "naked" domain. Subdomains only. I tried using the provided IPs, and that didn't work. 1and1 simply disallowed them. So I used resolveip to find out their hostnames and used those. That seemed to work!

Then, an hour or so later, I noticed that my domains were broken. DNS errors, apparently. Something about those servers just caused 1and1 to break horribly. I couldn't use the IPs, I couldn't use the hostnames, but I wanted to work around it somehow.

I figured that the only requirement is that the configured subdomain points at the IP the blog is being served from. Turns out this is actually really simple; they're all hosted on the IP that resolves to ghs.google.com. I created a CNAME record for my www subdomain and set it to ghs.google.com, then used 1and1's admin utility to force a redirect from the naked domain (lazyrobot.org.uk) to the subdomain (www.lazyrobot.org.uk).

This worked a treat, and didn't require any changes to the configured DNS hosts at all. One day, I hope to use a provider that doesn't explode my domains when trying to use Google's DNS. Until then, this little hack works well enough.

Comments

Popular posts from this blog

Sheffield CAMRA 35th Steel City Beer Festival!

The first weekend of October has rolled around, so once again it is time for the Sheffield CAMRA Steel City Beer Festival. Now in its 35th year, the festival has seen a lot of change in the recent past. After the terrifying ordeal that was the Darnall Liberal Club, standing out in a field with beer seems like a much nicer proposition. Unfortunately, reviews of the 34th festival were tainted with dissatisfaction, both with the venue and the organisation as a whole. I didn't attend last year, but I attended this year with some trepidation. Thankfully, the whole event was better run than I had been led to believe, but not without its fair share of hiccups. Two marquees provided more indoor space, the place didn't smell like a donkey sanctuary, and the beer tasted great. There were around a hundred beers to try, and thirty ciders, so even more than some previous years. After a couple of false starts, our little troop of merry drinkers (myself, Emma and Chris) finally arrived at

iPhone OS 3.0.1 fixes SMS hijack bug

A lot of Apple haters have been rubbing their tiny hands with glee recently after news reports of a security flaw in the iPhone OS 3.0 that could allow hackers to "Hijack every iPhone in the world" . Many were quick to point out how slow Apple were for not releasing a patch, and many simply made it a soap box for "iPhone sucks, use Android" rants. However, on July 31st, Apple released iPhone OS 3.0.1, with a patch for this SMS issue. It installs easily enough, job done. Of course, not being privy to such information as how to hack my own phone with this exploit, I can't check if it does the job. Either way, there it is. A fix. More detail on the OS 3.0.1 release notes .

Why won't I leave me alone!?

Sometimes I just wish I could ignore my brain so I might be able to concentrate for ten minutes.