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

Return peers for bootstrap? #127

Open
samyfodil opened this issue Feb 9, 2024 · 0 comments
Open

Return peers for bootstrap? #127

samyfodil opened this issue Feb 9, 2024 · 0 comments
Labels
entry level issue basic understanding of tau required feature New feature or request

Comments

@samyfodil
Copy link
Contributor

samyfodil commented Feb 9, 2024

tau implements a protocol called seer, which listen on DNS, so resolution for thing like .tau. are done dynamically.

examples:

$ nslookup substrate.tau.8bit.ws
Server:		127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
Name:	substrate.tau.8bit.ws
Address: 104.225.12.37
Name:	substrate.tau.8bit.ws
Address: 104.225.8.109

and

$ nslookup patrick.tau.8bit.ws
Server:		127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
Name:	patrick.tau.8bit.ws
Address: 192.73.240.48
Name:	patrick.tau.8bit.ws
Address: 192.73.242.72

It is handled here https://github.com/taubyte/tau/blob/main/protocols/seer/dns.go#L195

What needs to be done, is add a case for peers so

$ nslookup peers.tau.<domain>

will return a few peers we can use to bootstrap.

To get peers you can use user the seer service Node. I suggest shuffling, the picking up top N.
What I would do is look at the address of the request, if it came from a public IP, we only return public IPs.

@samyfodil samyfodil added feature New feature or request entry level issue basic understanding of tau required labels May 4, 2024
@samyfodil samyfodil changed the title Seer: return peers for bootstrap? Return peers for bootstrap? May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
entry level issue basic understanding of tau required feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant