AWS and Chrome DNS tricks

August 2, 2015

Back in the noughties I used to like blogging, in fact I liked blogging so much I had two WordPress blogs and

Neither blog has been running for a while, however there are still some links to them. I wanted to redirect all traffic to either of these sub-domains to with a permanently moved 301 header.

The DNS for is handled by Route 53, I didn’t want to have to set-up a server with Nginx just to handle redirects for a couple of sub-domains.

AWS Domain Redirects

Currently you can’t have domain redirects using just Route 53 however Adrian Holovaty has written a good article on how to set this up with a combination of Route 53 and S3’s “redirect all requests” feature

##Clear the DNS Cache in Chrome Clearing the Chrome DNS cache is always useful when fiddling about with DNS settings. However I’m always forgetting how to do it. I’ve put this here mainly as a reminder to myself. Put the following in your browser’s address bar:


Then hit the “Clear host cache” button. Annoyingly if I make it into a hyper link it doesn’t work. I assume for security reasons.

##Curl headers

Another thing I forget is how to just get the headers with curl.

curl -I

Running this shows going to now gives us HTTP header 301 Moved Permanently to

If you'd lke to contact me about this article then use twitter @petexgraham or email