Author

Topic: Onion addresses for outgoing connections (Read 128 times)

legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
May 07, 2022, 02:14:10 AM
#3
Your questions are pretty well explained in the Mastering Bitcoin book.

As explained in Network Discovery:
[...]

How does a new node find peers? The first method is to query DNS using a number of "DNS seeds," which are DNS servers that provide a list of IP addresses of Bitcoin nodes. Some of those DNS seeds provide a static list of IP addresses of stable bitcoin listening nodes. Some of the DNS seeds are custom implementations of BIND (Berkeley Internet Name Daemon) that return a random subset from a list of Bitcoin node addresses collected by a crawler or a long-running Bitcoin node. The Bitcoin Core client contains the names of nine different DNS seeds. The diversity of ownership and diversity of implementation of the different DNS seeds offers a high level of reliability for the initial bootstrapping process. In the Bitcoin Core client, the option to use the DNS seeds is controlled by the option switch -dnsseed (set to 1 by default, to use the DNS seed).


Do you know if anyone  has created an alternate DNS seed daemon besides Pieter Wuille's dnseeed(1) daemon on Github, or at least if the method for configuring BIND daemons into DNS seeds is well documented?
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
I have a pruned BTC node running over TOR with onlynet= onion and upon startup this node has 10 outgoing connections all to onion addresses. Question is, where does the node get the onion addresses from?
Your questions are pretty well explained in the Mastering Bitcoin book.

As explained in Network Discovery:
I understand that there are DNS seeders for bitcoin, but do they return onion addresses if they detect that the requesting node is running bitcoin over tor?
I'm pretty sure that if you use only Tor, you won't be using DNS at all, but instead will connect to a few given onion addresses that then give you more peer addresses which provide more and more (you get the idea), as explained above with the IP addresses in clearnet.

Also, I know that there is a list of hardcoded onion addresses in bitcoin core and I have observed that at times, the first outgoing connection is not from that list of nodes. Anyone have any idea why?
The hardcoded ones, as explained in the quotes above, are only used in the beginning or if the node has to re-bootstrap due to losing all connections.

Additionally, what do you think would be the merits/demerits of running a node on both TOR and IP?
If you use clearnet parallel to Tor, you won't get the highest level of security and privacy, for example from someone analyzing your network traffic. The merit is that you help the two networks to be connected and synced, in a way. If nobody ran clearnet + Tor nodes, there would be 2 separate networks that couldn't synchronize. Even worse, if mining pools were to only run clearnet nodes and there were no 'bridge nodes' that run both protocols, the Tor nodes would have no way to receive new blocks.

I'm trying to cover all grounds because I am collecting information of the current topology of the network and would like to have a complete view of the network. Any suggestions would be really appreciated.
I suggest the above linked book; it's widely available in paperback for reasonable price or online for free!
newbie
Activity: 17
Merit: 17
Hi,
I have a pruned BTC node running over TOR with onlynet= onion and upon startup this node has 10 outgoing connections all to onion addresses. Question is, where does the node get the onion addresses from?
I understand that there are DNS seeders for bitcoin, but do they return onion addresses if they detect that the requesting node is running bitcoin over tor?
Also, I know that there is a list of hardcoded onion addresses in bitcoin core and I have observed that at times, the first outgoing connection is not from that list of nodes. Anyone have any idea why?


Additionally, what do you think would be the merits/demerits of running a node on both TOR and IP?
I'm trying to cover all grounds because I am collecting information of the current topology of the network and would like to have a complete view of the network. Any suggestions would be really appreciated.
Jump to: