added support for domain aliases
Reverted to usage of hashes