I would like to summarize the contents that seemed to be understood but not fully understood.
--IP address --Domain --DNS server
https://qiita.com/questions/new For example, the URL you are currently accessing looks like this!
In this, "https" This part is called a scheme. Simply put, how do you communicate? It means that. Isn't it mostly https now?
By the way, it is often said that "this site is not safe" on smartphones. If http is used instead of https!
What is https? When data is sent, it is encrypted. There's a little bit of security about http that says the communication isn't encrypted!
It is safer if the data is encrypted when it is extracted.
Next, the "qiita.com" part is called the domain! A domain is simply like an address on the Internet!
There is a rule that this must not be covered by other domains.
Then "question / new" This is a path. Represents where to access in the domain! !!
Now you have a quick idea of what the URL stands for!
From here, I would like to explain how the web is projected on the screen.
① First, access the URL with the client! (A client is a terminal. It mainly refers to smartphones and PCs.)
(2) The client asks the DNS server to tell us the IP address of this domain! !! Oops, various words came out here lol
I will explain one by one. An IP address is like a number assigned to access your network. You can access the net with either this IP address or URL!
A DNS server is a server that can look up an IP address for a domain!
In other words, when the client tells the IP address of qiita.com (domain) and throws it to the DNS server. The DNS server returns the IP address to the client side like "XXX. +++. +++ .---".
③ The client connects to the web server with that IP address! It also asks the server to open the question / new page in the path part!
④ As a result, the web server issues HTML to the client and the URL screen is displayed!
It's been a long run, but the above is the mechanism until the web service is displayed on the screen!
Recommended Posts