You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This guide provides detailed steps to configure a `nwaku` node to locate and connect with peers in the Waku Network.
6
+
7
+
:::tip
8
+
You can configure a `nwaku` node to use multiple peer discovery mechanisms simultaneously.
9
+
:::
10
+
11
+
## Configure Static Peers
12
+
13
+
You can provide static peers to a `nwaku` node during startup using the `staticnode` configuration option. To connect to multiple peers on startup, repeat the `staticnode` option:
14
+
15
+
```bash
16
+
wakunode2 \
17
+
--staticnode:[Libp2p MULTIADDR PEER 1] \
18
+
--staticnode:[Libp2p MULTIADDR PEER 2]
19
+
```
20
+
21
+
## Configure DNS Discovery
22
+
23
+
To enable [DNS Discovery](/overview/concepts/dns-discovery) in a `nwaku` node, use the following configuration options:
24
+
25
+
-`dns-discovery`: Enables DNS Discovery on the node (disabled by default).
26
+
-`dns-discovery-url`: URL for DNS node list in the format `enrtree://<key>@<fqdn>` where `<fqdn>` is the fully qualified domain name and `<key>` is the base32 encoding of the compressed 32-byte public key that signed the list at that location.
27
+
-`dns-discovery-name-server` (optional): DNS name server IPs to query. You can repeat this option to provide multiple DNS name servers.
28
+
29
+
```
30
+
wakunode2 \
31
+
--dns-discovery:true \
32
+
--dns-discovery-url:[DNS NODE LIST]
33
+
```
34
+
35
+
## Configure Discv5
36
+
37
+
You can enable [Discv5](/overview/concepts/discv5) in a `nwaku` node using the `discv5-discovery` and `discv5-bootstrap-node` configuration options. To configure multiple bootstrap entries for the Discv5 routing table, repeat the `discv5-bootstrap-node` option:
When Discv5 is enabled and used with [DNS Discovery](#configure-dns-discovery), the `nwaku` node will attempt to bootstrap the Discv5 routing table by extracting `ENRs` from peers discovered through DNS.
To configure your node using the provided configuration options, please refer to the [Node Configuration Methods](/guides/reference/node-config-methods) guide.
Copy file name to clipboardexpand all lines: docs/guides/run-nwaku-node.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -57,9 +57,9 @@ To join the Waku Network, nodes must connect with peers. Nwaku provides multiple
57
57
58
58
|| Description | Documentation |
59
59
| - | - | - |
60
-
|Predefined Nodes| Configure the bootstrap nodes that `nwaku` should establish connections upon startup |[Configure Predefined Nodes](https://github.com/waku-org/nwaku/blob/master/docs/operators/how-to/connect.md#option-1-configure-peers-statically)|
61
-
| DNS Discovery | Enable `nwaku` to locate peers to connect to using the `DNS Discovery` mechanism |[Configure DNS Discovery](https://github.com/waku-org/nwaku/blob/master/docs/operators/how-to/configure-dns-disc.md)|
62
-
| Discv5 | Enable `nwaku` to locate peers to connect to using the `Discv5` mechanism |[Configure Discv5](https://github.com/waku-org/nwaku/blob/master/docs/operators/how-to/connect.md#option-3-discover-peers-using-waku-discovery-v5)|
60
+
|Static Peers| Configure the bootstrap nodes that `nwaku` should establish connections upon startup |[Configure Static Peers](/guides/nwaku/configure-discovery#configure-static-peers)|
61
+
| DNS Discovery | Enable `nwaku` to locate peers to connect to using the `DNS Discovery` mechanism |[Configure DNS Discovery](/guides/nwaku/configure-discovery#configure-dns-discovery)|
62
+
| Discv5 | Enable `nwaku` to locate peers to connect to using the `Discv5` mechanism |[Configure Discv5](/guides/nwaku/configure-discovery#configure-discv5)|
63
63
64
64
:::tip
65
65
You can configure a `nwaku` node to use multiple peer discovery mechanisms simultaneously.
Copy file name to clipboardexpand all lines: docs/overview/concepts/static-peers.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
-
title: Predefined Nodes
2
+
title: Static Peer
3
3
---
4
4
5
-
Waku applications have the flexibility to embed bootstrap node addresses directly into their codebase. Developers can use either the [predefined nodes by Status](https://github.com/waku-org/js-waku/blob/master/packages/core/src/lib/predefined_bootstrap_nodes.ts#L45) or [run a node](/guides/nodes-and-sdks#run-a-waku-node) per their preference.
5
+
Waku applications have the flexibility to embed bootstrap node addresses directly into their codebase. Developers can either use [static peers by Status](https://github.com/waku-org/js-waku/blob/master/packages/core/src/lib/predefined_bootstrap_nodes.ts#L45) or [run a node](/guides/nodes-and-sdks#run-a-waku-node) per their preference.
6
6
7
7
#### Pros
8
8
@@ -18,7 +18,7 @@ Waku applications have the flexibility to embed bootstrap node addresses directl
18
18
## Overview
19
19
20
20
```mdx-code-block
21
-
import PredefinedNodes from "@site/diagrams/_predefined-nodes.md";
21
+
import StaticPeers from "@site/diagrams/_static-peers.md";
0 commit comments