Skip to content

feat: Add support for both ip and hostname for peers#3768

Merged
kaimast merged 2 commits intostagingfrom
add-support-for-hostname-peers
Aug 6, 2025
Merged

feat: Add support for both ip and hostname for peers#3768
kaimast merged 2 commits intostagingfrom
add-support-for-hostname-peers

Conversation

@vicsn
Copy link
Collaborator

@vicsn vicsn commented Jul 30, 2025

Closes #378

It is convinent to be able to specify both IPs and hostnames as peers. Especially, when you are building ephemeral testnets and want to specify peers as

./snarkos start --peers "validator0:4130,client0:4130"

Where you can populate the /etc/hosts file with subnet hostnames.

Related PRs

Supersedes: #3432

It is convinent to be able to specify both IPs and hostnames as peers.
Especially, when you are building ephemeral testnets and want to specify
peers as

```
./snarkos start --peers "validator0:4130,client0:4130"
```

Where you can populate the `/etc/hosts` file with subnet hostnames.
Copy link
Contributor

@kaimast kaimast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two nits.

Copy link
Contributor

@kaimast kaimast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now :)

@kaimast kaimast merged commit ace765a into staging Aug 6, 2025
2 checks passed
@kaimast kaimast deleted the add-support-for-hostname-peers branch August 6, 2025 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Add DNS resolver for node connections

3 participants