The current dict is very fast, but requires all hostnames are in memory. A btree of the reversed hostname would be better.