In the pub the other day for the London.pm Social Smylers brought up the stuff he uses to make hostnames a bash command. He also found the time to generate some hate.
I do this another way as I have previoulsy blogged. Dominic Mitchell at the time pointed out that my scripting sucks. In fact my current version takes his suggestions on board.