docs.waku.org/docs/learn/concepts/dns-discovery.md

29 lines
1.1 KiB
Markdown
Raw Normal View History

2023-06-10 00:17:41 +01:00
---
title: DNS Discovery
2023-11-23 12:01:32 +01:00
hide_table_of_contents: true
2025-09-29 16:34:46 +10:00
displayed_sidebar: learn
2023-06-10 00:17:41 +01:00
---
2024-05-16 18:22:15 +01:00
Built upon the foundation of [EIP-1459: Node Discovery via DNS](https://eips.ethereum.org/EIPS/eip-1459), DNS Discovery allows the retrieval of an `ENR` tree from the `TXT` field of a domain name. This innovative approach enables the storage of essential node connection details, including IP, port, and multiaddr.
2023-06-10 00:17:41 +01:00
This bootstrapping method allows anyone to register and publish a domain name for the network, promoting increased decentralisation.
2023-06-10 00:17:41 +01:00
2023-06-14 04:34:58 +01:00
#### Pros
2023-06-10 00:17:41 +01:00
- Low latency, low resource requirements.
- Easy bootstrap list updates by modifying the domain name, eliminating the need for code changes.
- Ability to reference a larger list of nodes by including other domain names in the code or ENR tree.
2023-06-14 04:34:58 +01:00
#### Cons
2023-06-10 00:17:41 +01:00
- Vulnerable to censorship: Domain names can be blocked or restricted.
2023-06-10 00:53:16 +01:00
- Limited scalability: The listed nodes are at risk of being overwhelmed by receiving all queries. Also, operators must provide their `ENR` to the domain owner for listing.
## Overview
```mdx-code-block
2023-06-10 01:29:29 +01:00
import DNSDiscovery from "@site/diagrams/_dns-discovery.md";
2023-06-10 00:53:16 +01:00
<DNSDiscovery />
2024-05-16 18:22:15 +01:00
```