Skip to main content
16 votes
Accepted

How did peer discovery work in Bitcoin v0.1?

The first seed mechanism was IRC-based. There was a hardcoded IRC server and IRC channel (#bitcoin on Freenode), and the Bitcoin client would connect to the server, and join the channel with a ...
Pieter Wuille's user avatar
9 votes
Accepted

How does one become a DNS seed for Bitcoin Core?

DNS seeds are hardcoded in the code, you can see the actual DNS seed available in Bitcoin Core at this link. The requirements are: run a bitcoin seeder, which is a specialized software (like this) ...
Paro's user avatar
  • 305
6 votes
Accepted

DNS seeder 'options'

This is 'service bit filtering.' You can run nslookup seed.bitcoin.sipa.be, and get a list of bitcoin nodes. You can also run nslookup x1.seed.bitcoin.sipa.be, and get a list of nodes with ...
Nick ODell's user avatar
  • 29.4k
6 votes
Accepted

What can an attacker do if they compromise a DNS seeder?

DNS seeders exist in order to bootstrap new nodes to the network. Nodes maintain a database of IP addresses for other nodes that they can connect to which they build by requesting IP addresses of ...
Ava Chow's user avatar
  • 71k
5 votes

How did peer discovery work in Bitcoin v0.1?

Quoting from the wiki: In addition to learning and sharing its own address, the node learned about other node addresses via an IRC channel. See irc.cpp. After learning its own address, a node encoded ...
Antoine Poinsot's user avatar
4 votes

What is a DNS seed node vs a Seed Node?

2017 values are: seed.bitcoin.sipa.be dnsseed.bluematt.me dnsseed.bitcoin.dashjr.org seed.bitcoinstats.com seed.bitcoin.jonasschnelli.ch seed.btc.petertodd.org
Tearo Dactyl's user avatar
4 votes

Why doesn't Lightning have DNS bootstrapping?

It does! There is even a BOLT for it (check out: https://github.com/lightningnetwork/lightning-rfc/blob/master/10-dns-bootstrap.md ) from there you have the following example: dig lseed....
Rene Pickhardt's user avatar
3 votes
Accepted

Bitcoin dns seed flags

The format is simply xN.[seedname], where N is the required service flags, ORed together, encoded in hex. From Bitcoin Core's src/protocol.h: NODE_NONE = 0, // NODE_NETWORK means that the node ...
Pieter Wuille's user avatar
3 votes

addnode vs seednode

A node is a machine that is connected to other nodes on the Bitcoin network which sends and receives blocks and transactions with other nodes. A peer is a node which your node is connected to. Peer ...
Ava Chow's user avatar
  • 71k
3 votes
Accepted

Why doesn't bitcoin have a dns server?

Bitcoin addresses aren't meant to be reused as this significantly reduces privacy. This was known to Nakamoto before the initial release of Bitcoin (see section 10 of his Bitcoin paper) and his ...
David A. Harding's user avatar
3 votes

What precisely are vSeeds "seednodes", how to they work, how to create one for a new network?

Couple of points covering what it is and how it works: The description might be out of date. You'd need to follow the code to see how seeding is done. E.g. IRC seeding is not used any more (but ...
Louis's user avatar
  • 126
3 votes

How does sipa's bitcoin-seeder determine which IPs to return out of all the ones it knows to be available for P2P connection?

The answer is simple: it returns as many as fit in a DNS UDP packet (512 bytes).
Pieter Wuille's user avatar
2 votes

Attach and persist identity to address

I think this works great if you want to confirm a shipping address in order to make sure the person who paid is aware of where the shipment goes (if you want to accept the fact that everyone in the ...
Nick ODell's user avatar
  • 29.4k
2 votes
Accepted

How to setup nameserver for dns seeder?

It's important to realize that a domain name can represent either a host machine OR a sub-domain. Name-serving a sub-domain is done by delegating the job to name servers for that sub-domain. This is ...
dbkeys's user avatar
  • 636
2 votes

What are seeds in the source code of bitcoin?

Those hosts are DNSseeds. When your node starts if it find itself unable to successfully connect to the network within 11 seconds it will query those DNS names which are run by technical people in ...
G. Maxwell's user avatar
  • 7,727
2 votes
Accepted

What are seeds in the source code of bitcoin?

In order for a bitcoin node to start connections with other nodes, it first needs a seed node. A seed node can be any node (listening) connected to the bitcoin network. Once the node has connected to ...
Tony Rizko's user avatar
2 votes
Accepted

Can I setup a DNS seed?

The DNS seed addresses are hardcoded into Bitcoin Core (or other clients). You would need to convince the Bitcoin Core developers to add your seed node to the hardcoded list. You can find here a ...
Nate Eldredge's user avatar
2 votes

Do we have to trust at least one DNS seed?

What you are saying is correct. I'll quickly elaborate on why these hardcoded dns seeds are required. The attack you mention is called "peer list poisoning", a strategy that can be used to segregate ...
Penquin's user avatar
  • 671
2 votes

How to run dns seeder?

I realize this question is a couple years old, but a proper tutorial has never been written until now. The tutorial is somewhat large, so I won't re-post it here, but I wrote a step-by-step guide for ...
Joe Uhren's user avatar
  • 151
2 votes

Why doesn't bitcoin have a dns server?

Because domain names cost money and Satoshi Nakamoto wanted you to be able to lend your friend 0.00001 BTC without him have to pay a corporation an annual fee. Because that would raise all sorts of ...
RedGrittyBrick's user avatar
2 votes

structure of communicating with bitcoin DNSs to get list of nodes

"Bitcoin DNS" is a bit of a misnomer. It appears that hostnames such as dnsseed.bluematt.me are not actual DNS servers - you cannot communicate with them using DNS protocols. However they are valid ...
RedGrittyBrick's user avatar
2 votes
Accepted

How do my bitcoin peers become diversified from the set of stable nodes?

DNS seeds which give you a list of hard-coded stable nodes. No, they don't do that and you are reading those answers incorrectly. The DNS seeders give you a list of random nodes from a set of stable ...
Ava Chow's user avatar
  • 71k
2 votes

What could stop bitcoin-seeder from "hearing" DNS queries?

The problem stems from the way Ubuntu 18 (and above) handle DNS resolution. My clue was comparing the output of netstat -an | grep "LISTEN " on a machine with a working dnsseed vs the Ubuntu ...
dbkeys's user avatar
  • 636
2 votes
Accepted

Why does my full node need to load IP addresses from DNS seeds on restart?

This appears to be resolved for me in v0.21 with this merged PR 16939 and some additional context in this issue and this Bitcoin Core PR review club. Falling back to load IP addresses from DNS seeds ...
Michael Folkson's user avatar
2 votes
Accepted

DNS Seeds for TORv3

Does querying the DNS Seeds via TOR return .onion addresses? Sometimes. Before the Bitcoin Core PR (#25678) you would expect to fall back to relying on the .onion addresses in the hardcoded seeds ...
Michael Folkson's user avatar
2 votes
Accepted

How does using DNS seeds to find initial peers compare to using seednode?

This was answered by dhruv and sipa on IRC. -seednode: a peer node that is only asked to respond to GETADDR. (This is the bootstrapping mechanism used for Tor nodes.) DNS seeds are names that ...
Michael Folkson's user avatar
1 vote

How does the bitcoin core protect against initial DNS seed changes?

Generally there's some discussion about attacks against the bootstrapping of Bitcoin Core, but there's not a whole lot in terms of being able to defend against it. Fortunately the DNS seeds are only ...
Claris's user avatar
  • 15.4k
1 vote

Using BTCPay Server along with a web server in a single machine

No, you can't specify port numbers in DNS records. It must be the reverse proxy which listens on ports 80 and 443 (not BTCPay Server). The reverse proxy should pass traffic to BTCPay Server or your ...
CypherpunkDev's user avatar
1 vote

How to run dns seeder?

DNS Seeders are not regular coin nodes but rather servers running a customized DNS binary. They do crawl a coin's P2P network and keep a list of currently live nodes to give as an answer when queried ...
dbkeys's user avatar
  • 636

Only top scored, non community-wiki answers of a minimum length are eligible