ShareYourGroupShareYourGroupIP and Internet

What is DNS?

DNS is the phone book of the internet: it turns a name you can remember into the IP address a computer needs.

Why DNS exists

Computers find each other by IP address, but people remember names. The Domain Name System joins the two. When you type a website's name, your device first asks a DNS server "what is the address for this name?", gets a number back, and only then connects to the website. It happens in a few thousandths of a second, before every first visit to a site.

What happens in a look-up

  1. Your device checks its own memory (cache). If it asked recently, it already knows the answer.
  2. If not, it asks the DNS resolver it has been told to use. By default that is your internet provider's, and your router passes its address to every device.
  3. The resolver finds the answer by asking, in turn, a root server (which knows who handles .com, .in and so on), the server for that ending, and finally the server that holds the records for the name itself.
  4. The resolver sends the address back and remembers it for a while, as long as the record's "time to live" allows.

Kinds of records

RecordWhat it holds
AThe IPv4 address for a name
AAAAThe IPv6 address for a name
CNAME"This name is another name for that one"
MXWhich server receives email for the domain
TXTFree text, used to prove ownership and to fight forged email
NSWhich servers hold the records for the domain

When DNS goes wrong

DNS trouble looks like "the internet is down" although the line is fine. Signs: apps that are already connected (a call, a chat) keep working while new websites will not open, or the browser says the site's address could not be found.

Things to try, easiest first:

ipconfig /flushdns

Changing your DNS resolver

You are free to use a public resolver instead of your provider's. Well-known ones are run by Google (8.8.8.8 and 8.8.4.4), Cloudflare (1.1.1.1 and 1.0.0.1) and Quad9 (9.9.9.9). Reasons people switch: the provider's resolver is slow or failing, or they want the filtering of harmful sites that some resolvers offer.

Set it in one place:

Privacy and DNS

Ordinary DNS look-ups are not encrypted. Whoever runs the resolver, and the network in between, can see which site names you look up (not the pages you read). DNS over HTTPS and DNS over TLS encrypt the question between you and the resolver. Modern browsers and phones support them; in browsers the setting is usually called "secure DNS". It hides the look-ups from the network you are on, though the resolver you chose still sees them.

Does changing DNS make the internet faster?

It can make the first connection to each site a little quicker if your provider's resolver is slow. It does not change download speed.

Does changing DNS hide my IP address?

No. Websites still see your address. DNS only answers the question "where is this name?".

What does "DNS server not responding" mean?

Your device asked for a name and got no answer. Restart the router first. If only one device is affected, clear its DNS memory or set a public resolver on it.