Bitcoin Forum
May 25, 2024, 07:45:38 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: When first run the wallet, connect to seed nodes, then?  (Read 192 times)
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
March 09, 2018, 03:27:29 AM
 #1

Lets say here is first started bitcoin client, name A.

So there was hard-coded ip address for let initially started node know where to connect to first peer,

now it seems moved to website? (dnsseeds.xxxxxx.xxx?)
Anyway then, after connect to that seeds, how A acquire other nearest nodes to connect? and these peer info (IP address?) preserved to local datadir?

And at next running after acquire that info, A directly first try connect to that nearest peer? not hard-coded dns or ip address info?

Thanks.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3402
Merit: 6653


Just writing some code


View Profile WWW
March 09, 2018, 05:00:30 AM
Merited by ABCbits (2)
 #2

Bitcoin Core uses a thing called DNS seeders. These are not websites; they don't serve HTML. They are just special domains where asking for the domain's DNS records (i.e. resolving the domain name) will return you the IP addresses of several nodes that you can connect to. These nodes are then connected to get more IP addresses to connect to.

If the DNS seeders are offline, there are a set of hard coded seed nodes as well. The same thing is done with the hard coded seed nodes as with the ones returned by DNS seeders. The only reason to use DNS seeders is that they are more up to date and accurate. Hard coded seeds are only set prior to release, so they could be outdated.

wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
March 09, 2018, 06:20:29 AM
Merited by ABCbits (1)
 #3

Bitcoin Core uses a thing called DNS seeders. These are not websites; they don't serve HTML. They are just special domains where asking for the domain's DNS records (i.e. resolving the domain name) will return you the IP addresses of several nodes that you can connect to. These nodes are then connected to get more IP addresses to connect to.

If the DNS seeders are offline, there are a set of hard coded seed nodes as well. The same thing is done with the hard coded seed nodes as with the ones returned by DNS seeders. The only reason to use DNS seeders is that they are more up to date and accurate. Hard coded seeds are only set prior to release, so they could be outdated.

Then it means DNS seeders has automatically updated by connected clients, fetch its ip address, and record and add it to seeder's own file, become bigger while time goes?

And about how to setup DNS seeder, this is valid? https://bitcointalk.org/index.php?topic=599623.0
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3402
Merit: 6653


Just writing some code


View Profile WWW
March 10, 2018, 07:06:44 AM
Merited by ABCbits (1)
 #4

Then it means DNS seeders has automatically updated by connected clients, fetch its ip address, and record and add it to seeder's own file, become bigger while time goes?
Yes. The DNS seeders maintain their own databases of nodes and have their own crawlers. They crawl the network to find nodes. Of course nodes are removed from the database as nodes drop offline so it doesn't grow infinitely big.

And about how to setup DNS seeder, this is valid? https://bitcointalk.org/index.php?topic=599623.0
Looks like it is.

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!