# What Is DNS?

Have you ever typed a website name in your browser and opened the website in a few seconds?

For example:

`google.com`

But how does your computer find the correct website?

To understand this, we first need to know three things: **Domain Names, IP Addresses, and DNS.**

---

## 1\. What Is a Domain Name?

A **Domain Name** is the name people use to visit a website.

For example:

- `google.com`
- `github.com`
- `youtube.com`

Domain names are easy to remember and easy to use.

Imagine having to remember a long number every time you want to visit a website. That would be difficult!

This is why we use domain names instead of remembering IP addresses.

> **Note:** A domain name is not the same as a full URL. For example, `https://google.com/search` is a URL, and `google.com` is the domain name.

---

## 2\. What Is an IP Address?

An **IP Address** is a numerical address used to identify a device or service on a network.

Computers use IP addresses to send and receive data over a network.

For example:

`203.0.113.10`

This is an example IPv4 address used for documentation. It is not a real website address.

Think of an IP address as a destination address. It helps network traffic reach the correct destination.

There are two main versions of IP addresses:

- **IPv4:** Uses numbers separated by dots, like `192.168.1.1`.
- **IPv6:** Uses hexadecimal numbers separated by colons, like `2001:db8::1`.

We will learn more about IPv4 and IPv6 in a separate article.

---

## 3\. What Is DNS?

**DNS** stands for **Domain Name System**.

It is a system that helps computers find services on the internet by using domain names.

For websites, DNS helps find the IP address connected to a domain name.

For example:

> **Domain Name:** `example.com`
>
> **DNS Result:** An IP address connected to this domain.

In simple words:

**DNS connects domain names to the information computers need to find internet services.**

DNS is not one single server. It is a distributed system that works across many DNS servers around the world.

---

## 4\. Why Do We Need DNS?

Computers use IP addresses to communicate over networks, but people find names easier to remember.

Imagine if you had to remember an IP address for every website you visit.

Instead of typing:

`google.com`

You would need to remember a number such as:

`142.250.x.x`

That would be difficult.

DNS makes this process easier. We use a domain name, and DNS helps the computer find the correct destination.

**The main idea:**

- People remember domain names.
- Computers use IP addresses for network communication.
- DNS helps connect the two.

---

## 5\. A Simple Example: Opening a Website

![](https://cdn.hashnode.com/uploads/covers/6ab88c552e6a138abf7988a0/5fa79142-e745-4247-8b8d-c15f1ed7902f.jpg align="center")

Let's say you want to visit:

`example.com`

Here is the basic idea:

1. You enter `example.com` in your browser.
2. Your device needs to find the IP address connected to this domain.
3. DNS helps it find the required information.
4. Your browser uses the IP address to connect to the website's server.
5. The website sends its content back to your browser.

> **Important:** This is a simple overview. The real DNS lookup has more steps and uses different DNS servers. We will explain the full process in the next article.

---

## 6\. Summary

Let's remember the main points:

| Term | Meaning |
| --- | --- |
| Domain Name | A human-friendly name for an internet service |
| IP Address | A numerical network address |
| DNS | A system that <mark>helps find internet services</mark> using domain names |

**DNS makes the internet easier to use.** We can remember website names instead of trying to remember their IP addresses.

In the next article, we will learn **How DNS Lookup Works**, step by step.
