Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted
Comments
Sergey Alexandrovich Kryukov 15-Feb-15 1:16am    
It's perfectly fine to ask several questions in one post, if they are reasonably related.
—SA
Kumar Pankaj Verma 15-Feb-15 1:23am    
( very small thing was behind it i as assuming something same to be but not sure about how header look like ) Thanks a lot......
Sergey Alexandrovich Kryukov 15-Feb-15 1:44am    
You are very welcome.
—SA
Kumar Pankaj Verma 15-Feb-15 1:43am    
HI SA,
posted another question. please reply.

http://www.codeproject.com/Questions/876270/Are-Name-Servers-are-exists-at-all-level-of-domain
Sergey Alexandrovich Kryukov 15-Feb-15 1:46am    
Sorry; so far, I did not dig into those detail...
—SA

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900