Home / Tech Terms

DNS

Internet and software. A free Tech Terms lesson in simple English (2:14 minutes).

Open in the academy (practice, progress and notes)

Chapters

Lesson text

0:00 What is DNS?

What is DNS? Let's understand it in very simple English. DNS means Domain Name System. One of its main jobs is to turn a website name into an IP address.

0:12 Why we need it

Think about the contacts on your phone. You choose the name Asha, and your phone finds her number. DNS does something similar. You type a name, and DNS helps find the IP address. Names are easier for people to remember. They also let a website move to a new IP address, and keep the same name.

0:30 How a DNS lookup works

So what happens when you open example dot com? If your device does not know the address already, it asks a helper called a DNS resolver. Your internet company or another service can run it. If the resolver does not know the answer, it may ask up to three kinds of servers. First, a root server tells it where to ask about dot com names. Next, a dot com server tells it which servers have the answer for example dot com. Finally, one of those servers gives the IP address. It is called an authoritative server, because it holds the official answer for that name. The resolver gives the address to your device. Now your browser can contact the website.

1:12 Cache and TTL

Do all these steps happen every time? No. Your device and the resolver can save the answer for a while. This is called a cache. How long can they keep it? Each DNS answer has a TTL, or time to live. It tells them how many seconds they can keep the answer. So when a website moves, some people may still get the old address for a while.

1:34 Common DNS records

DNS information is stored in records. Here are four common ones. An A record gives an IP version four address. A quad A record gives an IP version six address. AC name record points one name to another name. And an MX record shows which mail servers receive email for a domain.

1:53 Remember this

So remember one line. DNS helps your device turn a website name into an IP address. It finds the address, but it does not send you the web page. Here is a question for you. Which record gives an IP version four address? Think about your answer. Next time: HTTP and HTTPS.

Practice questions

Which DNS record gives an IPv4 address?

Answer: A. An A record gives an IPv4 address. AAAA gives an IPv6 address.

A website moves to a new server. Why might some people still get the old address for a while?

Answer: DNS answers can be saved in a cache. A device or resolver can keep an answer until its TTL ends.