Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2013-11-22
10
Medium Priority
?
264 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 2000 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 2000 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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 2000 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

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

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

This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to insert an Iframe into 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 : Open Page or Post…
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…
Suggested Courses

688 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