added domain querying

added domain querying