If We have a windows server with IIS and We want to host more than one website in our server. Then what we do.
1) Create a new website in IIS.
2) We will ask our DNS team to create a DNS for the site, the only input we provide to DNS team is the IP of server.
3) Then the new website will open automatically with the new DNS.
How this works. because if have 2 sites hosted with us ( abc.com,abc1.com ) both have same IP and as per below given links what i understand is ...
http://www.mygreatname.com/how-dns-works/dns-e4.gif
http://s.hswstatic.com/gif/dns-rev-1.gif
at last client browser interact with the server by using IP Address (while IP address have 2 sites hosted on same server , ip , port in IIS ) then
Q1. how it returns the correct site data to client ? Please describe or give any good link to understand ?
Q2. when request comes to server NIC port 80 then what it has in request header / data ( IP / name of site / Which thing to identofy the correct site )?
Q3. If answer of q2 is IP of server then is it directly forwarded to IIS to handle that if yes ( how iis know where site is client requesting ? ) if NO the who else in between to confirm the IIS ( which site he need to access) ?
In All above question i am having a single question but because i am not sure at server end so lots are questions are emerging in my mind to relate the whole process.
Thanks in Advance