I know that to point a new domain to my existing host, I have to specify the nameservers for the host on the domain's registrar site.
But I'm not sure how can the hosting provider know which hosting account I'm pointing to ?
I guess that a single server can have multiple sites in it (at least in a shared hosting)
Say I have shared hosting and the http://www.my-old-site.com which points to the following nameservers :
ns1.example.com and ns2.example.com
Now I have bought a domain names www.new-domain.com, and I set the nameservers of the domain to ns1.example.com and ns2.example.com
Why the new domain will point to my site and not to any other site within the same server? What if there are 100 sites on the same server, How can the hosting provider know which site I want to point to?