Getting the query and retrieving the domain name work now.