Static IPs and DNS for Besu validators and bootnodes in the cloud

Keeping Besu enode URLs valid through restarts and replacements in AWS or Azure depends on stable addresses, persistent node keys and configuration under source control. This page explains the options and the setup sequence.

On this page

Why Besu static IPs and DNS for validators and bootnodes matter in the cloud

In a permissioned Besu network, peers do not find each other by name or by a central registry. Each node is identified by an enode URL, which embeds the node's public key and a network address, such as enode://<public key>@<host>:<port>. When another validator or bootnode is configured with that URL, it dials the address and expects the key behind it to match. In a cloud environment, the address is the part that tends to change. An elastic public IP that is released during a stop, a dynamic private address after a node is replaced, or a new VM with a fresh NIC can leave every peer holding a URL that no longer leads to the node. The node may be healthy and fully synced, yet the network still cannot reach it.

The node key is the identity that must persist. Besu stores the node's private key in a local file, and that key determines the public key in the enode URL. If a replacement node is started with a new key, it becomes a different peer, and the existing permissioning and peer lists will not recognize it. Teams should confirm where that key file lives, how it is backed up, and how a replacement receives the same key, before they decide how addresses will be handled. The Besu documentation on node keys is the natural next read for the key handling details.

How peers reach a validator through DNS and a stable address

Peers never dial a raw instance address. They dial a hostname in the enode URL, and that name resolves to an elastic or private static IP that the replacement instance can reclaim. The node key lives on a persisted volume, so the node keeps the same identity after a restart. Check that the hostname, the IP, and the enode in source-controlled config all agree, and that the key is never regenerated during a replacement.

Peers dial a hostname that stays fixed while the node and its key are replaced behind it.

Elastic IPs, private IPs and DNS names compared for AWS and Azure

On AWS, the stable public address for a node is an Elastic IP address. It is allocated to your account and can be associated with an instance or a network interface, then moved to a replacement instance without changing the address that peers have recorded. Private addressing works differently. Each network interface holds one primary private IPv4 address inside the subnet, and that address stays with the interface, so keeping the interface and reattaching it is the usual way to preserve a private identity through a replacement.

  • Elastic IP association: Associate the address with the node's network interface or instance, then re-associate it to the replacement during recovery. Confirm whether your instance type and placement allow the association you plan to use.
  • Primary private IP on the interface: Keep the validator's private address on a dedicated, long-lived interface. Detaching and attaching that interface can carry the address to a new instance in the same subnet.
  • Instance-level public IP: A public address assigned at launch is not the same as an Elastic IP. Confirm that it will not change on stop and start if you depend on it.
  • Account and region quotas: Elastic IP counts are limited per region and can be raised by request. Check the current quota before you plan one address per node, bootnode and standby.
  • Subnet and placement constraints: A replacement instance must land in a subnet that matches the interface's address range and availability zone rules.

Confirm every limit, quota and behavior against current AWS documentation before you build, because these details change and this page gives no figures.

Which address and naming option fits each Besu node role

This table compares four ways to identify a Besu node in an enode URL across validators, bootnodes and nodes reached only inside a private network. Read each row against your own network layout, then use the confirm column to check the points that depend on your cloud account and peering setup. The main takeaway is that a public or hostname-based enode is needed wherever peers outside your VPC must dial in, while private addressing suits nodes that only peers inside one network reach.

Node roleOptionWhen it fitsWhat it breaksWhat to confirm
ValidatorsPublic static IP in enodeValidator must be reachable by peers in other clouds or data centersAddress changes if the elastic IP is released or the instance is replacedAllocation survives instance replacement in your IaC; peers have the same address
ValidatorsDNS hostname in enodePeers need to reconnect after a node is rebuilt with a new IPResolution failures stop peering; stale DNS caches delay recoveryDNS record TTL, who controls the zone, and whether your nodes resolve it
BootnodesPublic static IP in enodeBootnode must be reachable from outside your network for new peers to joinAny IP change strands joining nodes until config is updatedStatic public address reserved and stored in source control
BootnodesDNS hostname in enodeBootnode is replaced often or moves between regions or cloudsJoining nodes fail if the name points to a retired addressRecords are updated with each replacement and tested from outside the VPC
Nodes reached only inside a private networkPrivate static IP with peering or VPNNode is reached only over a VPC peering link, transit gateway or site-to-site VPNAddresses are unusable from outside the connected networks; overlapping CIDR ranges block routingNon-overlapping CIDR blocks and routes in both directions
Nodes reached only inside a private networkIP literal in enodeAddress is fixed and the network is stable, with no name resolution in the pathAny renumbering requires redeploying every peer's static peer listWho owns the subnet and whether private addresses are reserved for the node
Any nodeHostname that resolves to a private IPInternal DNS zone serves both private peers and the name in the enodeClients outside the zone see no record or a different addressSplit-horizon DNS behavior tested from every network that dials the node

Setting up stable enodes for Besu nodes in the cloud

This sequence gives each Besu validator and bootnode an identity and an address that survive restarts and replacements, so peers keep reconnecting without manual edits to every node's peer list.

  1. Decide the naming scheme

    Agree with the platform and network teams on one hostname pattern for every validator and bootnode, such as a role, a member code and an environment, for example bootnode-01.members.example.internal (illustrative). Decide which zone holds the DNS records, who owns them, and whether internal peers will resolve the names through private DNS. Write the scheme into the repository README so it is reviewed like any other config. Done when every planned node has a unique name and an owner for its record.

  2. Generate and store node keys before provisioning

    Create each node's key pair before any virtual machine or pod exists, so the public key that forms the enode ID is known in advance. Store the key file in a secrets manager or HSM-backed store, not in the image or the Git repository, because Besu documentation says the local node private key file is not encrypted. Confirm the key location with the Besu node keys documentation and the security module option if you use an HSM plugin. Check: record each enode public key in your inventory and confirm the file can be read by the Besu process user only.

  3. Reserve addresses and create DNS records

    Reserve a fixed address for each node using the cloud provider's mechanism for that purpose. On AWS this is typically an Elastic IP for public endpoints or a fixed private IP for internal ones. On Azure, use a static public IP or a reserved private IP in the subnet. Create an A record for each name pointing at the reserved address. Check: run a DNS lookup from a host in each peer's network and confirm it returns the expected address, and that the address survives a stop and start of the instance.

  4. Derive enode URLs and place them in config

    Build each enode URL from the public key, the DNS name and the P2P port, using the format described in the Besu private network documentation. Use the hostname rather than the IP so the URL stays valid if the address changes. Place the bootnode list in the bootnode configuration and, where the network relies on static peers, place the same URLs in the static-nodes.json file. Commit both to source control and review them with the other members. Check: start one node with the new file and confirm the log shows the expected enode identity and that its peer list resolves to the DNS names.

  5. Mount key and config so replacements reuse them

    Mount the node key file and the data directory from persistent storage that is separate from the instance or pod, so a replacement node starts with the same identity. Mount the configuration files from source control or a managed config store. Keep the DNS record and the reserved address attached to the role, not to a specific instance, so a rebuilt node takes over the same name. Check: destroy a test node in a non-production environment, reprovision it from the same definitions, and confirm the enode ID in the logs matches the recorded value.

  6. Verify peers reconnect after a restart

    Restart one validator or bootnode and watch its peer count and connection logs until it reaches the expected number of peers. Confirm that the other nodes reconnect without changes to their configuration. Compare the peer list after the restart with the inventory from step two. A node that reconnects only after a manual edit has a dependency on an IP address or an identity that is not stable, and the fix belongs in the earlier steps.

  7. Verify peers reconnect after a replacement

    Replace one node in a non-production network by provisioning a new instance from the same definitions and attaching the existing key, data and DNS record. Confirm the new instance joins the peer set under the same enode and that peers accept it without a configuration change on their side. Record the test result, the Besu version and the DNS TTL used in the test. Repeat this check after each Besu upgrade, because the upgrade process may change how the node starts.

Protecting node keys, DNS records and config under source control

A stable enode URL depends on three things staying correct: the node key that defines its identity, the DNS or IP record that points to it, and the peer list that other nodes trust. Each one needs its own access model, backup plan and review step, so a single change cannot silently break or hijack a validator or bootnode.

Node key file access control

The local node private key file is not encrypted by default, so anyone who can read it can impersonate the node. Restrict read access to the Besu service account, keep the file off shared volumes and out of container images, and confirm the file permissions on every host after provisioning. Ask whether your platform team can prove who read the key and when. Hardware-backed storage through a security module plugin, such as the Besu HSM plugin used with the --security-module option, is a path to confirm with your security team, not a default recommendation.

Node keys docs

Backup and recovery of node keys

A key that exists only on a single disk or in a single cloud account is a recovery failure waiting to happen. Decide where encrypted copies live, who may restore them, and how a restored key is verified against the enode URL in the peer list before the node rejoins. Pre-generated keys should be stored with the same care as the running copy. Treat a lost key and a leaked key as separate incidents with separate runbooks.

Who can change DNS and address records

A DNS record that points an enode hostname at a validator is a trust path. Limit write access to the DNS zone to a named group, separate it from application deployment rights, and log every change. Review whether a short TTL is needed for failover and whether the same zone is shared with other teams. An unauthorized record change can redirect peers to an address you do not control, so confirm alerting on record edits.

Enode lists in source control without private keys

Keep the enode URLs, hostnames, chain ID and permissions files in a Git repository so that every peer list has history and an owner. Public enode values are identifiers and can be committed, but the node key file must never enter the repository, its history or CI logs. Add a secret scanning check to the pipeline and confirm that deployment tooling reads keys from a secrets store at runtime.

Change review for peer lists

A peer list change can split a network or admit a node nobody approved. Require review from at least one operator who did not write the change, and check that each new enode matches the key that the owning organization confirmed out of band. Pair the review with the permissioning configuration so that a peer added in the list is also allowed by the node permissions file. Record the approval in the merge history so auditors can trace it.

What changes during Besu upgrades and node replacements

Replacing a validator or bootnode with the same node key and the same address keeps its enode URL unchanged, so peers that already know it reconnect without any configuration change. A replacement with a new node key produces a new enode, and every peer that lists the old one must learn the new value before the node can be reached through that entry. This is the main reason to pre-generate keys and to publish DNS names that point at a stable identity. Before a replacement, confirm which key file the new instance will load, confirm that the key matches the enode recorded in your source-controlled configuration, and confirm that the static IP or DNS record resolves to the new instance before you stop the old one. Besu's documentation on node keys is the reference for how the key file determines node identity.

Upgrades are where data risk appears. The Besu 26.10.0 release notes state that the Bonsai database auto-upgrades on first start, and that older Besu versions cannot open an upgraded database. A replacement that moves a validator's data volume to a newer image, or a rollback after a failed upgrade, therefore depends on a backup taken before the upgrade started. Plan that backup as a required step in the change record, not as an optional precaution, and test that the restore path works on a non-production node. Note that a static IP or DNS name does not protect chain data: a node that starts on a new image against a copied volume can change the database format for that copy only, so keep the original volume and snapshot untouched until the new node is confirmed healthy.

Keep the change sequence explicit for every replacement, whether it is an upgrade or a hardware or cloud move. Record the enode before and after, update the peer lists and DNS entries in the same change, and verify peer counts on the remaining validators before retiring the old instance. Ask your cloud and platform teams to confirm whether the address you plan to keep is preserved when an instance is stopped, deallocated or replaced, because an elastic or private static address behaves differently across AWS and Azure. Any step that cannot be confirmed in your own environment should be tested in a staging network that mirrors your peer topology.

Questions teams ask before changing Besu node addressing

Do Besu validators and bootnodes need static IP addresses?

Not always, but they need a stable way for other nodes to reach them. Peers identify a node by its enode URL, which contains the node's public key and a host and port. If that host is an IP address that changes after a restart or replacement, peers lose the connection until their configuration is updated. Teams usually solve this with an elastic or private static IP in the cloud, or with a DNS name that always resolves to the node's current address. Either approach works only if the node's private key stays the same, because the public key is part of the enode URL. Confirm the exact enode and discovery behavior for your Besu version in the Besu documentation before you pick a design.

Does my Besu version support DNS-based enode URLs?

Check this against the release you run before you commit to a design. DNS-based enodes depend on how your Besu version resolves hostnames in peer and bootnode settings, and that behavior can change between calendar releases. Read the node and peer configuration pages in the Besu documentation for your exact version, then test the behavior on a non-production network. Also confirm that your version still supports the features your design needs, since Besu has removed several features in recent releases, including Clique consensus in 26.4.0. Your release notes on the Besu GitHub releases page list what changed.

How much work is changing node addressing, and what drives it?

The effort depends on how many validators and bootnodes you run, how many clouds and clusters they span, and how much of the addressing is already automated. Costs have a one-time part (design, pre-generating node keys, building the DNS and network layout, testing restarts and replacements) and a recurring part (keeping DNS records, peer lists and infrastructure code current as nodes are added or retired). The largest drivers are the number of nodes that must be readdressed at once, whether any node is already live on a chain that others depend on, and whether your team already manages infrastructure as code. Ask any provider for a written quote that lists each node, each cloud resource and each test case.

What must our team provide before the work starts?

Expect to provide access and decisions, not just a request. You will need cloud account or subscription access with rights to create static addresses, DNS zones, network security rules and infrastructure code repositories. You will also need an inventory of every validator and bootnode, their current enode URLs, the networks they serve and the change windows your operations team allows. Decide who owns the node private keys and where they are stored, because the key file holds the node identity that enodes depend on. Finally, name the people who approve changes to peer lists and DNS records. Missing any of these items usually extends the schedule more than the technical work does.

Can our own team make these changes without outside help?

Yes, if your team has experience with Besu, your cloud networking and infrastructure as code. The work involves cloud addressing, DNS, Besu configuration, key handling and coordination with other consortium members, so the skills must cover all of them. Teams that run Besu in production often handle routine restarts themselves and bring in a partner for the first redesign or for a migration across clouds. A fixed-scope engagement with DeployOpen can cover planning, implementation, documentation and testing of the addressing design, and an ongoing retainer can cover later changes. Compare the cost of a partner against the internal time and the risk of a mistake on a live network.

How long does a change to node addressing take?

The duration depends on scope and environment. A single test network with a few nodes and clear infrastructure code takes far less time than a production consortium with validators in several clouds, multiple approval steps and coordinated change windows across members. The schedule usually depends on the time needed to pre-generate and secure keys, to test restarts and replacements, to update peer lists with other operators and to agree on a cutover plan. Ask for a timeline in the written scope that separates design, test, cutover and post-change verification, and confirm which steps depend on other organizations.

What are the main risks when changing enodes on a live network?

The main risk is that a node comes back with a different identity or an unreachable address, which can cut it off from peers and affect block production if too many validators drop out. Other risks include a lost or regenerated node key, stale peer lists held by other operators, firewall rules that block the new address, and DNS records that change before every peer has updated. Reduce these by pre-generating keys and storing them securely, testing each change on a non-production network, changing one node at a time and verifying peer connections after each step. Keep the previous configuration in source control so you can roll back quickly.

Limits to confirm in your cloud account and Besu version

Static addressing for validators and bootnodes depends on three layers: what your cloud provider allows and how it reattaches addresses, what the Besu version in use does with hostnames, and how QBFT behaves when a peer's address changes mid-round. Confirm each limit before you write the enode configuration that other members will depend on.

Provider address quotas and reattachment

Cloud providers limit how many static public addresses an account can hold per region and whether an address can move between network interfaces or instances. Confirm the quota for each region you use, and test how long detaching and reattaching an address takes during a planned replacement. Ask whether the address survives instance deletion, since that decides whether a rebuilt validator keeps its published endpoint. Record the answers in the runbook so the replacement procedure matches what the account actually permits.

Hostname resolution in enode and peer config

Enode URLs are normally written with an IP address, and not every Besu version resolves a hostname supplied in the enode or static peer list at startup. Check the release notes and the peer configuration documentation for the exact version you run, then test with a DNS name that points to a non-production address. If resolution happens only once at startup, a changed record will not be picked up until the node restarts. Write this result into your configuration standard before you publish any DNS-based enode.

Besu private networks docs

DNS TTL and reconnection timing

A short TTL lets a changed record reach peers quickly, but resolvers and client caches can hold results longer than the TTL you set. Measure how long a peer takes to reconnect after you change a record in a test network, and compare that with the time your quorum can tolerate losing a validator. Consider whether the Besu node retries lookups after a failed connection or keeps the first answer until restart. Document the TTL, the expected reconnection window and the owner of each DNS zone.

Security group rules for the P2P port

Peer-to-peer traffic uses a TCP and UDP port that must be open between every pair of nodes that need to connect, while the JSON-RPC and metrics ports should stay closed to the public internet. Confirm the port number in your configuration, then check that security groups or network security groups allow inbound and outbound traffic in both directions. Replacement nodes often fail to join because a rule was tied to the old address rather than to a subnet or a member's address range. Write rules that reference ranges you control and review them after every address change.

Address changes during an active QBFT round

A QBFT validator that changes its address mid-round can miss proposals and votes until its peers reconnect, and quorum depends on enough validators staying reachable. Ask how long your network takes to recover after one validator drops out, and whether a block can stall if two validators change addresses close together. Test the sequence on a non-production network with the same validator count, then decide whether replacements should happen in a maintenance window. Confirm the recovery behavior with your Besu version and your validator set before you schedule any change.

How DeployOpen scopes Besu addressing and DNS work

DeployOpen is a Chainscore Labs company that plans, implements and supports self-hosted open-source platforms inside the client's own cloud accounts, data centers or closed networks. For a Besu validator and bootnode addressing project, that means the addressing design, DNS zones, key generation approach and configuration repository are built in your AWS or Azure accounts and under your change control, not in a DeployOpen-hosted environment. Your team keeps ownership of the accounts, the DNS zone and the keys, and DeployOpen works inside those boundaries.

Engagements are fixed-scope. Before work starts, the scope, deliverables and timeline are agreed in writing. For this topic, a written scope usually names the nodes covered, the cloud regions and accounts involved, whether elastic or private static addresses are used, which DNS names will appear in enode URLs, where pre-generated node keys are stored, how the configuration is kept in source control, and how the cutover and replacement tests will be verified. A quote follows from that written scope, so the more precisely your team lists these items up front, the more accurately the quote reflects the work. Ask for the quote to show one-time build work separately from any recurring items.

Once the addressing and DNS design is live, many teams want help keeping it that way as Besu versions change, nodes are replaced and cloud resources are adjusted. DeployOpen offers ongoing support, upgrades and continuous testing as retainers, which can be scoped separately from the initial build. Confirm with DeployOpen during scoping which items would fall under a retainer and which would be a new fixed-scope piece of work, and ask how changes to the enode DNS records will be reviewed before they reach production.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.