I really like your script.

Just out of curiousity, is there a way to make it compress the hosts file lines?

I remember this application in window's, that would take 4 host file lines and make...