Managing and retrieving subdomains