fixing !domain to use lookup instead of query