Skip to content

Allow overriding initial peering DNS by environment variable#3656

Merged
dsiganos merged 2 commits intonanocurrency:developfrom
dsiganos:dns_override_for_beta_network
Jan 11, 2022
Merged

Allow overriding initial peering DNS by environment variable#3656
dsiganos merged 2 commits intonanocurrency:developfrom
dsiganos:dns_override_for_beta_network

Conversation

@dsiganos
Copy link
Copy Markdown
Contributor

@dsiganos dsiganos commented Jan 7, 2022

The initial peering DNS is peering.nano.org.
This commit allows to set NANO_DEFAULT_PEER to override it.
This allows for more flexibility when running private test networks.

The initial peering DNS for beta network is peering-beta.nano.org.
This commit allows to set NANO_BETA_PEER_NETWORK to override it.
This allows for more flexibility when running private test networks.
@zhyatt
Copy link
Copy Markdown
Collaborator

zhyatt commented Jan 7, 2022

@dsiganos In what scenario is using the beta network with custom peering DNS preferred over the test network which already allows this customization?

@dsiganos
Copy link
Copy Markdown
Contributor Author

dsiganos commented Jan 8, 2022

If we wanted to run SPAM attack tests then they are easier on beta network than on test network due to reduced difficulty.
Additionally, being able to override the peering DNS to something that doesn't resolve, is a very easy way to stop a node from contacting any peers (after wiping the peer table).

@dsiganos
Copy link
Copy Markdown
Contributor Author

After discussion, it was decided to:

  • Rename NANO_TEST_PEER_NETWORK to NANO_DEFAULT_PEER
  • Apply it to the active network (live, beta, test)

…l networks (live, beta, test)

We want to have one environment variable to override the default
preconfigured peer in all networks cases (live, beta and test).

The name thus needs renaming to remove TEST from its name.
Since we are renaming it, we also take the opportunity to improve the name
to something more descriptive, NANO_DEFAULT_PEER.
@dsiganos dsiganos requested a review from clemahieu January 10, 2022 19:35
@dsiganos dsiganos added the documentation This item indicates the need for or supplies updated or expanded documentation label Jan 10, 2022
@dsiganos dsiganos changed the title Allow overriding initial DNS of beta network by environment variable Allow overriding initial peering DNS by environment variable Jan 11, 2022
@dsiganos dsiganos merged commit 47ae64b into nanocurrency:develop Jan 11, 2022
@zhyatt
Copy link
Copy Markdown
Collaborator

zhyatt commented Jan 11, 2022

Just noting that there are no documentation changes to be considered for this.

@dsiganos dsiganos deleted the dns_override_for_beta_network branch January 18, 2022 19:47
qwahzi added a commit to qwahzi/nano-docs-1 that referenced this pull request Jan 25, 2023
Add NANO_DEFAULT_PEERS documentation per nanocurrency/nano-node#3656
qwahzi added a commit to qwahzi/nano-docs-1 that referenced this pull request Jan 25, 2023
Add NANO_DEFAULT_PEER documentation per nanocurrency/nano-node#3656
thsfs pushed a commit to nanocurrency/nano-docs that referenced this pull request Jan 26, 2023
* Add NANO_DEFAULT_PEER documentation

Add NANO_DEFAULT_PEER documentation per nanocurrency/nano-node#3656

* Update NANO_DEFAULT_PEER comments in build-options.md

Update NANO_DEFAULT_PEER comments in build-options.md, per nanocurrency/nano-node#4073 (comment)
SmartNodeX added a commit to SmartNodeX/nano-docs that referenced this pull request Sep 16, 2025
* Add NANO_DEFAULT_PEER documentation

Add NANO_DEFAULT_PEER documentation per nanocurrency/nano-node#3656

* Update NANO_DEFAULT_PEER comments in build-options.md

Update NANO_DEFAULT_PEER comments in build-options.md, per nanocurrency/nano-node#4073 (comment)
ethanWalker89 added a commit to ethanWalker89/nano-docs that referenced this pull request Sep 23, 2025
* Add NANO_DEFAULT_PEER documentation

Add NANO_DEFAULT_PEER documentation per nanocurrency/nano-node#3656

* Update NANO_DEFAULT_PEER comments in build-options.md

Update NANO_DEFAULT_PEER comments in build-options.md, per nanocurrency/nano-node#4073 (comment)
crypto-phantomb6u7 added a commit to crypto-phantomb6u7/nano-docs that referenced this pull request Sep 28, 2025
* Add NANO_DEFAULT_PEER documentation

Add NANO_DEFAULT_PEER documentation per nanocurrency/nano-node#3656

* Update NANO_DEFAULT_PEER comments in build-options.md

Update NANO_DEFAULT_PEER comments in build-options.md, per nanocurrency/nano-node#4073 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation This item indicates the need for or supplies updated or expanded documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants