api: store subdomains too