Add GetAllDomains function.