OK, this version actually looks a little better. I may modify mine to take into account the if statements, but you may want to try this one. Teach me not to search again sine the last time I did.
http://www.alfredforum.com/topic/325-workflow-dns-cache/?hl=flush