Rewrote DomainLookup.

So much cleaner now.