Internet
Tags: webdev, beginners, programming, tutorial
Published: 2021-11-09 09:02:08

## How does the Internet work?
* The Internet is a network of networks. It works by using a technique called packet switching, and by relying on standardized networking protocols that all computers can interpret.

## What is HTTP?
* A protocol standardizes communication over the internet. The Hypertext Transfer Protocol (HTTP) is used to transfer resources (e.g., HTML files, audio files, images, etc.) between a client and a server. A client is a machine that initiates the communication, and a server is a machine that needs to be contacted. HTTP runs over TCP.

## How does a web browser work?
* When the web browser fetches data from an internet connected server, it uses a piece of software called a rendering engine to translate that data into text and images. This data is written in Hypertext Markup Language (HTML) and web browsers read this code to create what we see, hear and experience on the internet.

![DNS](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q0h3w48z12ntnvm4tbon.png)

## What is DNS? | How DNS works?
* The Domain Name System (DNS) is the phonebook of the Internet. Humans access information online through domain names, like nytimes.com or espn.com. Web browsers interact through Internet Protocol (IP) addresses. DNS translates domain names to IP addresses so browsers can load Internet resources.

* The process of DNS resolution involves converting a hostname (such as www.example.com) into a computer-friendly IP address (such as 192.168.1.1). An IP address is given to each device on the Internet, and that address is necessary to find the appropriate Internet device - like a street address is used to find a particular home. When a user wants to load a webpage, a translation must occur between what a user types into their web browser (example.com) and the machine-friendly address necessary to locate the example.com webpage.

![Domain Name](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6kfsib7xsxws79l02c1y.jpeg)
## What is a domain name?
* A domain name is a unique, easy-to-remember address used to access websites, such as ‘google.com’, and ‘facebook.com’. Users can connect to websites using domain names thanks to the DNS system.

![Web Hosting](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wdzewpah4f42kf55jbh2.png)

## What is web hosting?
* Web hosting is an online service that allows you to publish your website files onto the internet. So, anyone who has access to the internet has access to your website. In practice, it usually refers to the service you get from a web hosting provider like one.com.

* While you can theoretically host an actual server for your website at home, relying on a web hosting service provider offers lots of benefits.

## How does web hosting work?
* In summary, companies like us rent out services and technologies to host your websites on the internet. Once you’ve chosen your domain name and signed up to a hosting plan, then your website is accessible on the internet.

* When you use web hosting services, your web host is responsible for making sure your server is up and running. Not only that, but it is also a hosts job to prevent any security breaches and store all your files, assets and databases onto the server.