Bootstrap Node

A hardcoded address a fresh node contacts first to learn about other peers, then disappears from the picture.

Basically

A bootstrap node is a fixed entry point that your new Bitcoin node contacts first. It helps your node find other computers on the network.

Key Takeaways

  • Bootstrap nodes solve the "first contact" problem. A new Bitcoin node needs at least one existing peer to join the network, and bootstrap nodes provide that first introduction.
  • Bitcoin Core uses DNS seeds as its main bootstrap mechanism. Trusted community members operate these domain names, which resolve to IP addresses of active nodes on the peer-to-peer network.
  • After bootstrapping, your node uses the normal gossip protocol. It discovers new peers through address messages and no longer depends on bootstrap nodes for connectivity.

What Is a Bootstrap Node?

A bootstrap node is a well-known network entry point for new clients that do not yet know any other peers. Bitcoin uses two forms: DNS seeds and hardcoded seed nodes. DNS seeds are domain names that return lists of active node IP addresses, while hardcoded seed nodes are IP addresses compiled directly into the Bitcoin Core binary as a fallback.

Every peer-to-peer network faces a chicken-and-egg problem: to join, you need to know at least one existing participant, but you cannot learn about participants without being on the network. Bootstrap nodes break this cycle by serving as publicly known entry points. They have no special privileges or authority over the network; their only role is to introduce new nodes to other peers so normal peer discovery can begin.

A node rarely needs bootstrap nodes again after connecting to the network and populating its local peer database. On later startups, it reconnects to peers it already knows from previous sessions.

How It Works

A fresh Bitcoin Core node starts with an empty peer database, called peers.dat. It then goes through a multi-stage discovery process.

The node moves to standard gossip-based peer management after this initial discovery phase. It periodically exchanges address messages with its peers, continuously refreshing its view of the network without relying further on bootstrap infrastructure.

DNS Seeds

DNS seeds are the primary bootstrap mechanism in Bitcoin Core. Each seed is a domain name operated by a trusted community member who runs crawler software that continuously scans the Bitcoin network for reachable nodes. A new node queries these domains through standard DNS resolution and receives IP addresses of recently active nodes.

The current mainnet DNS seeds in Bitcoin Core include several domains. Well-known contributors operate those domains.

DNS seed operators must follow a formal policy documented in Bitcoin Core's repository. They must serve only fairly selected, functioning Bitcoin nodes and enforce a DNS TTL of less than one minute to keep results fresh. They must also follow good host security practices and minimise query logging, with no disclosure to third parties.

Hardcoded Seed Nodes

Bitcoin Core falls back to hardcoded IP addresses compiled into the binary if DNS resolution fails because of network restrictions, censorship, or DNS infrastructure issues. These addresses sit in the vFixedSeeds array and represent nodes that were active on the network when that software version was released.

Hardcoded seeds are a last-resort mechanism. Their static addresses are updated only with new software releases, so some may have gone offline since compilation, but they still provide a censorship-resistant fallback that does not depend on DNS infrastructure.

Manual Configuration

Bitcoin Core provides three command-line flags for manual control of bootstrapping. You can use them to choose how your node finds and connects to peers.

The -seednode flag mirrors DNS seed behaviour: connect, learn addresses, disconnect. The -addnode flag keeps a persistent connection to the specified peer while also discovering others normally. The -connect flag is the most restrictive: it disables DNS seeds, hardcoded seeds, and address gossip entirely, limiting the node to only the specified peers.

All three flags accept multiple values. Operators can therefore specify several bootstrap or persistent peers.

Why It Matters

Bootstrap nodes are a critical piece of network infrastructure that most users never think about. They support Bitcoin's permissionless design: anyone can download the software, start a node, and join the network without requesting access from any authority. Bootstrapping runs automatically and transparently in the background.

Node operators running Bitcoin Core behind restrictive firewalls or in censored network environments need to know these bootstrap options. The -connect flag lets them tunnel through specific trusted peers. The hardcoded seed fallback keeps connectivity possible even when DNS is blocked.

The design also illustrates a recurring theme in decentralised systems: some degree of initial trust is unavoidable. A brand-new node must trust that at least some bootstrap nodes will connect it to the real Bitcoin network rather than an attacker-controlled fake. Bitcoin mitigates this risk through redundancy across multiple independent DNS seed operators, block header verification that checks proof-of-work from the genesis block, and diverse hardcoded fallback addresses.

Eclipse Attacks

An eclipse attack happens when an adversary controls all of your node's peer connections and isolates it from the honest network. An attacker who compromises multiple DNS seed operators or poisons DNS responses could feed a new node only malicious peer addresses during bootstrapping.

Bitcoin Core uses multiple independent DNS seeds operated by different community members. It also uses geographical and network diversity in seed selection, plus proof-of-work validation that makes it computationally infeasible to fool a node with a fake chain for long.

Privacy Implications

Privacy practices continue to evolve, but DNS queries are typically unencrypted, so ISPs and network observers can see that you are bootstrapping a Bitcoin node. The DNS seed operator also learns your node's IP address. If you are concerned about metadata leakage, you can use Tor or manually configure peers with -connect to avoid DNS queries entirely.

BIP 324, the v2 transport protocol, has been enabled by default since Bitcoin Core v27.0 and adds opportunistic encryption to peer-to-peer connections. It does not change the bootstrap mechanism itself, but it protects traffic after the initial connection from passive eavesdropping.

Centralization Pressure

The bootstrap process introduces a mild centralisation vector because the set of DNS seed operators is small and curated. If several operators were compromised simultaneously, the consequences for newly connecting nodes could be significant. The Bitcoin Core project addresses this through strict operator policies, multiple independent operators across different jurisdictions, and the hardcoded fallback list as a secondary path.

Stale Seeds

Hardcoded seed addresses in vFixedSeeds become stale over time as nodes go offline. A node that cannot reach DNS seeds and must rely solely on hardcoded addresses may struggle to find active peers if the binary is old. Keeping Bitcoin Core updated ensures the hardcoded list remains reasonably current.

Nuri provides this glossary entry for informational purposes only. It does not constitute financial or investment advice. Always do your own research before using any protocol or technology.

0

← All 1876 glossary terms