1

Command

nslookup seed.bitcoin.sipa.be

gives a list of 40 nodes.

1) Does Bitcoin wallet take all nodes from that list?

or

2) Does Bitcoin wallet behave like normal application that resolves seed.bitcoin.sipa.be and take only one IP address to connect.

2 Answers 2

0

seed.bitcoin.sipa.be and the other DNS seeders listed here will return a list of IP addresses when given a DNS query. Bitcoin Core then takes all of those IP addresses and adds them to its internal address manager. It will then attempt connecting to the addresses stored in its address manager which, after the first start, will consist of more than just the nodes returned by the DNS seeders.

4
  • Thanks. So this means that even if DNS seed returns a few invalid IP adresses it's not a problem because Bitcoin Core takes all IP adresses and finds the working ones.
    – JPX
    Oct 11, 2017 at 12:49
  • Yes. And there are multiple DNS seeders so it will get nodes from other DNS seeders too.
    – Andrew Chow
    Oct 11, 2017 at 14:17
  • If you define addnode=seed.xxxxxx.com or type addnode seed.xxxxxx.com add does Bitcoin Core add all IP addresses or just one IP address to it's address manager?
    – JPX
    Oct 15, 2017 at 13:20
  • You cannot add DNS seeders via the command line or the RPC commands. addnode will add the one node that you enter to the address manager and then attempt to connect to it. There are no "all IP addresses" for it to even add; you are only giving it one IP address.
    – Andrew Chow
    Oct 15, 2017 at 15:16
0

The bitcoin client will first try to scan for previous known IPs, once that fails, it will indeed fall back on DNS seeds.

It will resolve seed.bitcoin.sipa.be to a list of IP adresses and it will pick one of them.

1
  • What if there is multiple DNS seeds? Will client pick one IP address from each DNS seed?
    – JPX
    Oct 10, 2017 at 20:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.