cache domain name lookups

locally this was getting called anywhere from 4-40 times per page
load (as well as in all sorts of async places)