in reply to find the domain name from subdomian

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).
the hardest line to type correctly is: stty erase ^H
  • Comment on Re: find the domain name from subdomian