You can have site1.com and site2.com resolve to the same IP.
When the browser connects to the server on that IP it will ask for either site1.com or site2.com by name. Then the webserver will respond back with the right website. So you can technically have an unlimited amount of domains resolving to the same IP but loading millions or billions of different websites.