I have big list of domains names, like:
site.com
ns1.site.com
ns2.site.com
test.main.site.com
google.com
mail.google.com
etc.
The count of row around 10^9. I search best way to store this and find all subdomains by main domain.
For example, search query is:
site.com
Result will be:
ns1.site.com
ns2.site.com
test.main.site.com
Any ideas how to do it?
Thanks