In this video we're not going to be doing anything, we're not gonna be learning about
networking specifically on Linux. We need to understand a few general concepts before
we get to that. So, this video is going to be a sort of introduction to
networking on Linux. An introduction to networking in general. So, right now you
are on a computerized device watching this video which is on the Internet. And the
way that's happening is basically you're connected to a router, or a modem router
all-in-one device, and the router is connected to your internet service
provider, and your internet service provider has devices that are connected
to the bigger world of the internet. So, you send a request, if you open up a browser and
type in google.com and then hit enter,
your web browser sends that as a request. It's basically saying okay this is the web
page that this computer wants to look at right now. It sends that through your
router, which sends it to your internet service provider, and your internet
service provider has all these fancy computers that properly route
certain requests to DNS servers, any requests actually. What a DNS server does is it
says okay, you gave me this string of text, a domain name or URL, and I have a
record here that shows this domain or string of texts is supposed to serve up
the content at this IP address. And so how the internet works is it doesn't
understand Google.com or Facebook.com. The internet uses network addresses, right,
and so think of it like each web server, each server out there has and address
just like every house on your street has an address. So, if you were gonna send somebody
down the street to Joe's place, you would say okay well go to this address, then you
would give them the address of Joe's place and they would be able to find it.
The same thing is happening on a DNS server. You give the DNS server a domain name that
you want to look at, and then th the DNS server takes that and says okay well I know this domain
name is supposed to route to this IP address. So, you request, you need
to go over to the server to get that content, and so your request then gets
translated to an IP address and other information, and it gets to the web
server that it's supposed to be at. And then the web server running Apache or anything really
nginx, I'm sure there's tons out there that I don't know about, but the web server
receives requests, it receives all of the information related to it. So, cookies you know
session variable stuff like that as well as the exact item you want to look at it.
So, if you go to website.com/something /something else,
everything after the .com/ is called a URI and that indicates what
piece of content on the server you want. So, think of the first part domain.com as
what server you need to be communicating with, and then afterwards you know /about.php
or something that's gonna tell the server once it gets the request what
page it needs to send you. And then it does it's you know rendering process and it sends you
that page in the exact same route that your request
took to get there.
So, it's like when you send your friend down the street to Joe's place to pick up a
box of pizza. So, your friend walks down the street he turns left you know maybe
turns right, he gets to Joe's place, he walks in says hey I need to get a pizza,
Joe gives him the pizza, then he walks same way back to your house, and before you know it a
web page has loaded within your computer box. That's how that happens. I hope you
guys understood that. In the next video we're actually gonna cover a few more
concepts before we dive into you know really understanding to the point that
we can use applications to do certain things. So, I hope you guys found that
informative. If you didn't, if there's any point in this video that you felt lost,
or confused, or even that I was just rambling, or even if you just want to
tell me you know a few more web server applications aside from Apach, there is
a comment section to the side of this video. You just leave a comment I will
reply and get you whatever information you need,
and hopefully this will make sense to you.