What exactly are you after? There's no such thing as a top-level domain name from a subdomain in DNS. DNS records merely show information for a particular domain, for which the dns server(s) are authoritative. You would need to (most likely manually) follow domain registration records to determine which entity is responsible for which domain and (possibly) subdomain(s).