Author

Topic: When first run the wallet, connect to seed nodes, then? (Read 211 times)

staff
Activity: 3458
Merit: 6793
Just writing some code
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.

Looks like it is.
jr. member
Activity: 413
Merit: 5
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://bitcointalksearch.org/topic/a-basic-guidetutorial-for-creating-dns-seeders-599623
staff
Activity: 3458
Merit: 6793
Just writing some code
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.
jr. member
Activity: 413
Merit: 5
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.
Jump to: