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

bootstrap: add /dnsaddr nodes #4127

Merged
merged 1 commit into from
Aug 25, 2017
Merged

bootstrap: add /dnsaddr nodes #4127

merged 1 commit into from
Aug 25, 2017

Conversation

ghost
Copy link

@ghost ghost commented Aug 7, 2017

  • Removes half of the static bootstrappers, and adds 4 /dnsaddr bootstrappers instead
  • Updates go-libp2p for /dnsaddr support
  • Updates go-libp2p-host because that was missed some time ago

@ghost ghost added topic/libp2p Topic libp2p topic/repo Topic repo labels Aug 7, 2017
@ghost ghost requested a review from whyrusleeping August 7, 2017 07:15
@vyzo vyzo mentioned this pull request Aug 8, 2017
@@ -14,23 +14,19 @@ import (
// NOTE: This is here -- and not inside cmd/ipfs/init.go -- because of an
// import dependency issue. TODO: move this into a config/default/ package.
var DefaultBootstrapAddresses = []string{
"/dnsaddr/bootstrap.libp2p.io/ipfs/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN",
Copy link
Member

Choose a reason for hiding this comment

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

Are these the correct ones? dig is giving me a different answer...

Copy link
Member

Choose a reason for hiding this comment

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

I did not give you a different answer 😉

Copy link
Member

Choose a reason for hiding this comment

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


; <<>> DiG 9.11.2 <<>> TXT _dnsaddr.bootstrap.libp2p.io
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34286
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;_dnsaddr.bootstrap.libp2p.io.	IN	TXT

;; ANSWER SECTION:
_dnsaddr.bootstrap.libp2p.io. 559 IN	TXT	"dnsaddr=/ip6/2a03:b0c0:0:1010::23:1001/tcp/4001/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd"
_dnsaddr.bootstrap.libp2p.io. 559 IN	TXT	"dnsaddr=/ip4/178.62.158.247/tcp/4001/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd"

;; Query time: 0 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Tue Aug 15 13:36:02 PDT 2017
;; MSG SIZE  rcvd: 270

@ghost
Copy link
Author

ghost commented Aug 15, 2017

Yep the actual nodes and DNS records haven't been set up yet. I have the respective public/private keypairs sitting on disk here.

@whyrusleeping
Copy link
Member

@lgierth this LGTM, needs a rebase it seems. And we need to coordinate with @vyzo on the circuit relay PR because i'm sure there will be another conflict there

@ghost
Copy link
Author

ghost commented Aug 17, 2017

This one is much easier to rebase, let's merge it after the circuit PR landed

@whyrusleeping
Copy link
Member

whyrusleeping commented Aug 17, 2017 via email

@ghost ghost force-pushed the feat/dns-bootstrap branch from a3c506f to 5689104 Compare August 17, 2017 14:24
@ghost
Copy link
Author

ghost commented Aug 17, 2017

Jenkins now green

@whyrusleeping
Copy link
Member

@lgierth Can you write a migration (part of the 5-to-6 one) that updates users with old configs?

cc @kevina

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/libp2p Topic libp2p topic/repo Topic repo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants