You should be able to create and use wildcard host entries. I tried that two years ago; see this post.