# Decentralized Domain Name Servers

## **What is the DNS?**

Every device on the internet has a unique address – called an IP address – that helps other computers identify it.  Unfortunately, this address is represented with a string of numbers such as “198.61.190.243”.&#x20;

As you can imagine, human beings aren’t very good at remembering random strings of numbers, nor do they provide any context as to what’s on the site.  That’s why the Domain Name System (DNS) was created – it serves as the “phonebook” of the Internet and translates IP addresses into human readable names.&#x20;

For instance, let’s say you wanted to look up [www.facebook.com](http://www.facebook.com).

1. Your computer would send a request for [www.facebook.com](http://www.facebook.com/) to a DNS server
2. The DNS server would look up the name [www.facebook.com](http://www.facebook.com/), find its IP address and send it back to you
3. Your computer would then use this new IP address to make a request to directly to Facebook’s servers
4. Facebook would send the requested webpage back to your computer

<figure><img src="/files/AHwAnlOJOjOS49mafeUW" alt=""><figcaption><p>Source:  <a href="https://devopedia.org/domain-name-system">Devopedia</a></p></figcaption></figure>

The Domain Name System is not just one server, but instead a global collection of servers.  That way, if one doesn’t know the address you’re looking for, it can route it to another one.  This also provides redundancy in case a single server is attacked or goes down.

While the DNS is extremely important to the internet, it has one major flaw – it’s centralized.  This creates numerous risks including the lack of privacy, the potential for censorship and security vulnerabilities.&#x20;

As such, decentralized DNSs such as the Ethereum Name Service, aim to supplant this \~40 year old system and become the “phonebook” of the blockchain.&#x20;

## **How do Decentralized DNS services work?**

The Ethereum Name Service (ENS) is virtually identical to the internet's DNS system, in that it translates human-readable names into computer addresses

For instance, without ENS, if you wanted to pay your friend in cryptocurrency, you’d have to know the public address of her wallet, which might look something like “0x787192fc5378cc32aa956ddfdedbf26b24e8d78e40109add0eea2c1a012c3dec”.  ENS allows users to create “nicknames” – such as “Alice.eth”  –  a and attach them to their wallet, allowing anyone to send any Ethereum enabled token to that address. &#x20;

ENS operates using two main components, a main “registry” and a collection of “resolvers”.  The registry contains all the “nicknames” (called domains) registered on the system and the address of their respective resolvers.  The individual resolvers contain the information necessary to match each domain to its actual Ethereum address.&#x20;

&#x20;          **The ENS Registry Contains Individual Resolvers That Can Translate Each Domain**

<figure><img src="/files/9V05zgATHlrSJfbZEkjs" alt=""><figcaption><p>Source:  <a href="https://docs.ens.domains/">ENS</a></p></figcaption></figure>

So if someone wanted to send 10 ETH to “alice.eth” using Metamask:

1. The user would open their Metamask wallet, hit the “send” button and add “alice.eth” as the recipient’s address
2. The system would then query the main registry to find out which resolver is responsible for “alice.eth”
3. The register would return the applicable resolver
4. The system would then query the resolver for the correct address, which would return “0x787192fc5378cc32aa956ddfdedbf26b24e8d78e40109add0eea2c1a012c3dec”
5. Metamask would then use this new address to complete the transaction

Like the DNS, this all occurs “under the hood”, so from a user perspective they simply type “alice.eth” in the address and the money is on its way.&#x20;

While ENS originally only worked for .ens names, in late 2021, the protocol announced that it would also be integrating traditional domain names into the system.  This opens up a world of potential as it makes it possible to register urls such as “alice.com” to a wallet and allow it to receive cryptocurrencies.&#x20;

## **Key Players**

Notable players in the decentralized DNS space include ENS, Unstoppable Domains, Bonfida, Handshake and Namecoin.&#x20;

<figure><img src="/files/jJRHKcJeKoVO46jaY52k" alt=""><figcaption><p>Source: Coinmarketcap as of 9.12.22</p></figcaption></figure>

<figure><img src="/files/VKZPLIZHMyCn9BesKzsH" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.digitalnations.xyz/web3-overview/web3-infrastructure/decentralized-domain-name-servers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
