Bitcoin Forum
April 25, 2024, 11:04:04 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [PATCH] DNS seeding of P2P node addresses  (Read 4293 times)
jgarzik (OP)
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
March 09, 2011, 03:44:56 AM
 #1

URL: http://yyz.us/bitcoin/patch.bitcoin-dnsseed

This patch adds "-dnsseed" command line argument, which causes bitcoin to read P2P node addresses from DNS A records retrieved via lookups against a precompiled list of DNS names.

Presumably, trusted community members running long-running nodes could list their nodes here.

Also, someone might wish to create a service that examines current P2P addresses from addr.dat, and exports a random selection of fresh nodes via DNS.




Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
1714043044
Hero Member
*
Offline Offline

Posts: 1714043044

View Profile Personal Message (Offline)

Ignore
1714043044
Reply with quote  #2

1714043044
Report to moderator
The network tries to produce one block per 10 minutes. It does this by automatically adjusting how difficult it is to produce blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
nanotube
Hero Member
*****
Offline Offline

Activity: 482
Merit: 501


View Profile WWW
March 09, 2011, 03:48:31 AM
 #2

nice idea!

Join #bitcoin-market on freenode for real-time market updates.
Join #bitcoin-otc - an over-the-counter trading market. http://bitcoin-otc.com
OTC web of trust: http://bitcoin-otc.com/trust.php
My trust rating: http://bitcoin-otc.com/viewratingdetail.php?nick=nanotube
mndrix
Michael Hendricks
VIP
Sr. Member
*
Offline Offline

Activity: 447
Merit: 258


View Profile
March 09, 2011, 04:06:44 AM
 #3

For anyone testing the patch, you can also use bitseed.ndrix.com and bitseed.jjgames.com which both point to long-running nodes
jgarzik (OP)
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
March 09, 2011, 04:29:02 AM
 #4

in addition to hard-coded list, what do you think about my idea of having a convention of using for bootstrap a list of DNS names like
fallback.bitcoin.<tld> or bootstrap.bitcoin.<tld> for every known TLD, there are couple of hundreds of them.

Seems easier to abuse than just hardcoded trusted DNS names, where site owners proactively indicate interest in being listed.

Long term, I hope some community members step up to

  • administer a domain bitseed.example.com
  • use https://github.com/gavinandresen/bitcointools to dump bitcoin's address database
  • select 5-6 "fresh" addresses on port 8333
  • dynamically update your DNS bitseed.example.com to list those 5-6 addresses in A records

This sort of dynamic P2P sampling + export is preferred over simply listing long-running node jgarziks_node.example.com.


Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
jgarzik (OP)
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
March 10, 2011, 07:23:46 PM
 #5

As of now I am hosting

#host bitseed.bitcoin.org.uk
bitseed.bitcoin.org.uk has address 69.163.132.101
bitseed.bitcoin.org.uk has address 109.75.176.193
bitseed.bitcoin.org.uk has address 217.157.1.202
bitseed.bitcoin.org.uk has address 174.120.185.74
bitseed.bitcoin.org.uk has address 69.164.218.197
bitseed.bitcoin.org.uk has address 178.18.90.41
bitseed.bitcoin.org.uk has address 142.58.248.28
bitseed.bitcoin.org.uk has address 91.85.220.84
bitseed.bitcoin.org.uk has address 178.63.62.15
bitseed.bitcoin.org.uk has address 178.63.15.200

suitable hosts are taken from  https://en.bitcoin.it/wiki/Fallback_Nodes

Feel free to use for testing and in production.

Added to DNS seed list.  That's just the sort of DNS seed I was hoping for, thanks.


Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
twobits
Sr. Member
****
Offline Offline

Activity: 574
Merit: 250



View Profile
August 19, 2011, 12:23:53 PM
 #6

As of now I am hosting

#host bitseed.bitcoin.org.uk
bitseed.bitcoin.org.uk has address 69.163.132.101
bitseed.bitcoin.org.uk has address 109.75.176.193
bitseed.bitcoin.org.uk has address 217.157.1.202
bitseed.bitcoin.org.uk has address 174.120.185.74
bitseed.bitcoin.org.uk has address 69.164.218.197
bitseed.bitcoin.org.uk has address 178.18.90.41
bitseed.bitcoin.org.uk has address 142.58.248.28
bitseed.bitcoin.org.uk has address 91.85.220.84
bitseed.bitcoin.org.uk has address 178.63.62.15
bitseed.bitcoin.org.uk has address 178.63.15.200

suitable hosts are taken from  https://en.bitcoin.it/wiki/Fallback_Nodes

Feel free to use for testing and in production.







Seems the  link to the patch now gives a 404 record so I can't look at it.  If I am understanding what is proposed here it seems a good idea.  However the above is not the right record type.  It should be using SRV records not A records,  this also lets the record specific the port number, so that need not be fixed.

█████                █████      ███████             
█████                ███    █████████████       
█████                ██  █████████████████   
█████                █  ██████              ██████ 
█████                    ████                      ████ 
█████████████  █████                        ████
█████████████  █████                        ████
█████████████  █████                        ████
█████                    █████                             
█████                █  ██████              ███████
█████                ██  ███████████    █████ 
█████                ███    █████████    ████   
█████                █████      ███████    ██
███
███
███
███
███
███
███
███
███
HyperQuant.net
Platform for Professional Asset Management
███
███
███
███
███
███
███
███
███
WhitePaper
One-Pager
███
███
███
███
███
███
███
███
███
Telegram 
Facebook
Twitter
Medium
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
███
█████                █████      ███████             
█████                ███    █████████████       
█████                ██  █████████████████   
█████                █  ██████              ██████ 
█████                    ████                      ████ 
█████████████  █████                        ████
█████████████  █████                        ████
█████████████  █████                        ████
█████                    █████                             
█████                █  ██████              ███████
█████                ██  ███████████    █████ 
█████                ███    █████████    ████   
█████                █████      ███████    ██
jgarzik (OP)
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
August 20, 2011, 02:38:33 AM
 #7

Seems the  link to the patch now gives a 404 record so I can't look at it.  If I am understanding what is proposed here it seems a good idea.  However the above is not the right record type.  It should be using SRV records not A records,  this also lets the record specific the port number, so that need not be fixed.

SRV records would be nice...

...but it is difficult to make that work in a cross-platform manner.

"A" records have a higher Just Works(tm) value, even if we are forced to compromise and hardcode port 8333.

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5180
Merit: 12884


View Profile
August 20, 2011, 03:07:33 AM
 #8

"A" records have a higher Just Works(tm) value, even if we are forced to compromise and hardcode port 8333.

It also wouldn't be too difficult to brute-force all port numbers if none of the peers support 8333 (which probably indicates that the ISP is blocking 8333).

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
marcus_of_augustus
Legendary
*
Offline Offline

Activity: 3920
Merit: 2348


Eadem mutata resurgo


View Profile
August 20, 2011, 08:57:42 AM
 #9


Maybe an application for Namecoin "trust-noone" local, dns look-ups.

tnkflx
Sr. Member
****
Offline Offline

Activity: 349
Merit: 250


View Profile
August 21, 2011, 10:55:56 AM
 #10

We could also get our own tld via http://www.opennicproject.org/...  For instance, .btc or .bitcoin or whatever Smiley

| Operating electrum.be & us.electrum.be |
zwierzak
Newbie
*
Offline Offline

Activity: 24
Merit: 0



View Profile WWW
August 21, 2011, 04:45:34 PM
 #11

We could also get our own tld via http://www.opennicproject.org/...  For instance, .btc or .bitcoin or whatever Smiley
Rather http://dot-bit.org/Main_Page
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!