Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootnode's IP address keeps changing #482

Open
tomaka opened this issue Jun 27, 2020 · 3 comments
Open

Bootnode's IP address keeps changing #482

tomaka opened this issue Jun 27, 2020 · 3 comments
Labels
A-p2p Issues concerning the peer-to-peer network

Comments

@tomaka
Copy link
Owner

tomaka commented Jun 27, 2020

It turns out that #433 was a bad idea, and the bootnode's IP address keeps changing.
I'm unfortunately not super experienced at this.

@tomaka tomaka added the A-p2p Issues concerning the peer-to-peer network label Jun 27, 2020
@tomaka
Copy link
Owner Author

tomaka commented Jun 27, 2020

I've manually assigned a static IP on DigitalOcean, as a work-around for the bad configuration.

@tomaka tomaka added help wanted Extra attention is needed and removed help wanted Extra attention is needed labels Jun 28, 2020
@tomaka
Copy link
Owner Author

tomaka commented Jun 28, 2020

After look a bit into it, I think the best strategy is:

  • In the code, use /dnsaddr/ multiaddresses for the bootnode addresses. This is unfortunately not supported by rust-libp2p yet.
  • Deploy a DNS server that specifically handles these /dnsaddr/ addresses. It took me a couple minutes to find the specs, but here it is.
  • Update the configuration of the DNS server if a node changes IP.
  • Derive all the private keys from all bootnodes from a single secret combined with the index of the bootnode. This is already the case as of Prepare a second bootnode #489

In the meanwhile I'll add bootnode: 0 and bootnode: 1 labels on the Kubernetes nodes, so that pods get assigned their proper IP address.

@tomaka
Copy link
Owner Author

tomaka commented Feb 20, 2021

cc #638

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-p2p Issues concerning the peer-to-peer network
Projects
None yet
Development

No branches or pull requests

1 participant