Solved

How are pages fetched -- address resolution for internal website and IIS.

Posted on 2013-11-22
10
260 Views
Last Modified: 2013-11-22
I am new to web programming.

I am learning IIS.

Within a company firewall, there is website, that is, I suspect, is not available to the rest of the world outside the firewall.

https://inventorytracker.dev.pepsico.net/Pages/Default.aspx
(I made this link up to look similar to my company link, where pepsico.net is in place of my company name).

How is the address resolved?
What is the process?

Is there a dedicated server that points all internal addresses, such as
inventorytracker.dev.pepsico.net
to a particular machine and particular port?  (If so, what is the name of the program or tool that keeps track of all these mappings).

IIS seems to let you create new websites that use the same port as other websites on the machine--it doesn't force you to create a new port for each website.

So how does it know which website to pick?
0
Comment
Question by:kamistry
  • 5
  • 5
10 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39670133
All browsers operate on port 80 (443 for SSL) unless you specifically set a different port.
When you put a site address into the browser then the browser will first check its host file to see if there is already an IP entry for the address and if not sends this to the local DNS server.
The DNS server to use will be configured on each PC.  The most common one for the home user would be Google's DNS - IP address 8.8.8.8.
The DNS server will translate the address to an IP address of the server hosting the domain and tell your browser this is where it needs to look.
Your pc then connects to the server with that IP and sends the domain address.
The server receiving a connection on port 80/443 will know to send this request to whichever HTTP server is running (IIS/Apache etc will listen on these ports for any communications) which in turn will look at its own configuration to determine where that domains files resides and returns them to the browser

That's the not so technical version.
0
 

Author Comment

by:kamistry
ID: 39670272
Where does the host file live on my windows 7 PC?

You're saying each PC is configured to use a certain DNS server.
Where is that setting on my windows 7 PC?
(I am not a home user -- company network)

Does the net result of the DNS translation amount to an IP Address + Port?
Correct me if I am wrong, but hypothetically speaking, DNS might translate the following link:
https://inventorytracker.dev.pepsico.net/Pages/Default.aspx
to
https://10.194.221.83:443/Pages/Default.aspx

(Can I type this into the broswer as-is?  If not, what is the right syntax to bypass the DNS)
0
 
LVL 58

Assisted Solution

by:Gary
Gary earned 500 total points
ID: 39670315
On Windows the hosts file is located in
C:\Windows\System32\drivers\etc\ - or the derivative version of the folders depending the OS

The DNS will depend on your ISP/Sys Admin. In Control Panel/Network and Sharing Center click Change Adapter Settings and right click what would likely be name Local Area Connection and select properties.
Select Internet Protocal Version 4 and click Properties - this will show the DNS settings, it may be Automatic

If you type in
https://inventorytracker.dev.pepsico.net/Pages/Default.aspx

The DNS server will return
10.194.221.83

The browsers connects to the IP (on 443) and sends this to it.
https://inventorytracker.dev.pepsico.net/Pages/Default.aspx

The DNS server is only there to tell your browser the IP to use - it knows nothing of ports.

If you type in https://10.194.221.83:443/Pages/Default.aspx the server will return the default domain.  Since a server may have multiple domains it needs the actual domain name to know what site you are looking for.
If you only use the IP then the default domain will be used (if any domain is setup as the default)
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:kamistry
ID: 39670362
if  DNS  only returns the IP and not the port, then how is it that, by typing:

https://inventorytracker.dev.pepsico.net/Pages/Default.aspx 
(I didn't define any port in the link)

into your browser,

the right site is returned?

There can be multiple web sites on the server.
How does it pick the site?

Are you saying that one of my sites is the default site?

How do I know which one is my default site?
0
 
LVL 58

Assisted Solution

by:Gary
Gary earned 500 total points
ID: 39670372
http uses port 80
https tells it to use 443

It picks the site based on the domain name - pepsico.net

If you only use the IP and your site comes up then it is one of two things - there is only that single site hosted on the server or it is the default domain.
0
 

Author Comment

by:kamistry
ID: 39670414
Now it makes sense!
You are awesome.
0
 

Author Comment

by:kamistry
ID: 39670467
I've requested that this question be closed as follows:

Accepted answer: 167 points for GaryC123's comment #a39670372
Assisted answer: 167 points for GaryC123's comment #a39670133
Assisted answer: 0 points for kamistry's comment #a39670272
Assisted answer: 166 points for GaryC123's comment #a39670315
Assisted answer: 0 points for kamistry's comment #a39670362

for the following reason:

The interaction lead to the solution.
0
 
LVL 58

Expert Comment

by:Gary
ID: 39670430
When closing a question and awarding points you don't select your own comments as part of the answers.
0
 

Author Comment

by:kamistry
ID: 39670468
I'm new to this.
Does that count against the person in some way (like point split or something like that)?
If so, I will try and see if I can adjust that.
But if not, then the reason was that it was a dialog and I wanted folks to see the interaction.
0
 
LVL 58

Expert Comment

by:Gary
ID: 39670479
No but there is no point selecting a comment where you are asking a question as one of the answers - and it just delays the closing process.
I will amend the Accepted Answer to my comments
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
New Website 15 32
Error pops up while using DWCSS 2015 11 166
WEB Service vs ??? 7 125
Intranet building Software 8 129
When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question