Solved

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

Posted on 2013-11-22
10
255 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
 

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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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 …
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

708 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now