Updated getDomains search functionality