Skip to content

DigiNode Seeder

What is a DigiByte seeder?

When a DigiByte node starts for the first time, it knows no other nodes. It finds them by asking the DNS seeders written into DigiByte Core: small servers run by volunteers that constantly check the network and hand out the addresses of nodes that are up and on the right chain.

Every extra seeder, run by a different person in a different place, makes the network harder to cut off or mislead. Running one is a simple, low-cost way to help DigiByte.

5mainnet seeders in DigiByte Core (v9.26.7)
3testnet seeders, and only one of them currently hands out more than a single node
£1-2a month is what a suitable server can cost if you shop around

How it works

  1. 1A new DigiByte node joining the network queries a seed server from the list built into DigiByte Core, such as seed.diginode.tools.
  2. 2The seeder answers like a DNS server, with the addresses of about 25 reliable nodes.
  3. 3The new node connects to those nodes and learns about more nodes from them.
  4. 4It starts downloading the blockchain from the network of nodes it has connected to.

Behind the scenes, the seeder:

  • Crawls the network all the time, revisiting known nodes to check they are still there.
  • Only hands out nodes that are reachable, on the right network, up to date and running a recent DigiByte Core.
  • Bans nodes that keep failing or misbehave.
  • Answers filtered questions too (such as x9.dgbseed.yourdomain.com, nodes with particular services), which DigiByte Core asks first.
  • Needs very little: a few tens of megabytes of memory and hardly any CPU.

DigiNode Seeder is the fastest, easiest way to set up a DigiByte seeder on your server

What is DigiNode Seeder?

DigiNode Seeder helps you set up a DigiByte seeder on your own server in a few minutes. Log in to the server, run one command, answer a few questions, and it does the rest:

  • Runs a mainnet seeder, a testnet seeder (DigiByte Core v9) or both on the same server, with a single IP address.
  • Builds the seeder from source, and runs each one as a locked-down service that starts at boot and restarts if it stops.
  • Answers only for your seed names, so your server can't be misused as an open DNS server.
  • Shows you the exact DNS records to add, then checks them for you and says what's wrong, if anything.
  • Installs security updates by itself, restarting only when an update needs it, and can turn on a firewall that only lets in SSH and DNS.
  • Gives you one command, diginode-seeder, to check on it, update it and get it into DigiByte Core, and reminds you of it each time you log in.

DigiNode Seeder is free to use. The script can be reviewed on GitHub (DigiNode-Tools/diginode-seeder-setup) before use, so you can understand what it does.

What you need

A server

A small VPS (virtual private server) with its own public IP address and a reliable connection. A seeder needs very little, so the cheapest plan most providers offer is enough: 0.5 GB of memory is fine. Fasthosts has one for about £1.40 a month; DigitalOcean, Linode and Hetzner are other options.

It needs Debian 12 or 13, or Ubuntu 22.04 or 24.04, with nothing else using port 53. Your provider's firewall must let UDP port 53 in.

A domain name you control

A domain where you can add DNS records, including NS records for a subdomain. You will use names like dgbseed.yourdomain.com.

Some DNS providers don't let you add NS records for a subdomain. Check first. Cloudflare and most registrars do.

Running a DigiByte Seeder Responsibly

Running a seeder is a small job, but a lasting one. Once your seed is in DigiByte Core, every node running that version can ask it for the addresses of other nodes, for as long as that version is in use: often years. So before you begin, please be sure you can:

Keep it running 24/7
New nodes can start at any hour, anywhere in the world. A seed that doesn't answer slows them down, and leaves the network relying on fewer seeders. DigiNode Seeder does most of the work, but it needs a server that stays on.
Stay reachable
Your name and GitHub handle go into DigiByte Core next to your seed, so you can be contacted if there is ever a problem with it.
Keep it for the long term
Plan to run it for a long time. If you ever need to stop, there's a simple way to do it properly (see When you want to stop).
Run one of each
At most one mainnet seeder and one testnet seeder per person, so there are many independent operators and no single point of failure.

How to keep an eye on it is in step 4.

Set it up

Choose how to set up your seeder. When it's running, carry on with step 3.

Stuck, or need help at any point? Ask in the DigiNode Tools Telegram group.

1

Run the setup on your server

Log in to your server with SSH (for example ssh [email protected], using your server's address) and run:

curl -sSL https://seedsetup.diginode.tools | sudo bash

It checks the server, then asks a few questions. Press Enter to accept a suggestion in [brackets]:

Which seeders
Mainnet, testnet or both. One server can run both.
Seed names
The names nodes will look up, such as dgbseed.yourdomain.com and dgbtestnetseed.yourdomain.com. Starting them with the chain keeps them apart if seeders for other blockchains share the server later.
Server name
A name for the server itself, such as seedserver.yourdomain.com. The seed names are handed to it.
Contact email
Shown in your seeds' DNS records (the SOA record), so people can reach you.
Login message
Shows the DigiNode logo and the diginode-seeder command each time you log in, so there's nothing to remember.
Security updates
Installs them by itself, and restarts at 03:30 (server time) only when an update needs it. The seeders start again on their own.
Firewall
Turns on a firewall that only lets in SSH and DNS. It uses your server's own SSH port, so you can't be locked out. If other programs run on the server, it tells you, since the firewall would block them.
DigiNode Seeder's setup in a terminal: the DigiNode logo, then questions about which seeders to run, the seed names, the server name, a contact email, the login message and security updates, and a summary.
The setup asks a few questions, then shows a summary before it starts.

It then installs what it needs, builds the seeder and starts everything, showing its progress as it goes. A few minutes later, when the seeders are finding nodes, it shows the DNS records to add.

2

Add the DNS records

At the DNS provider for your domain, add the records the setup shows you. With the example names they look like this:

NameTypeValue
seedserver.yourdomain.comAYour server's IPv4 address, e.g. 203.0.113.10
seedserver.yourdomain.comAAAAIts IPv6 address, if it has one, e.g. 2001:db8::10
dgbseed.yourdomain.comNSseedserver.yourdomain.com
dgbtestnetseed.yourdomain.comNSseedserver.yourdomain.com

The A (and AAAA) record says where your server is. The NS records hand the seed names over to your server, so it answers for them.

On Cloudflare, set the seedserver.yourdomain.com records to DNS only (grey cloud), not proxied. And make sure the seed names have no other records (A, CNAME...), or the NS records won't work.

The setup waits while you add them. Press Enter and it checks them, and tells you in plain words what's wrong, if anything. DNS changes can take a few minutes to spread: you can also stop and check later with diginode-seeder --dns.

The end of DigiNode Seeder's setup: both seeders running and finding nodes, the DNS records to add, a check of the records showing both seed names working, and what to do next.
The records to add, the check once they're in, and what's next.

Done? Next: add your seeder(s) to DigiByte Core

Prefer to set it up manually?

DigiNode Seeder is the quickest way, and it does things a guide can't, like checking your DNS records and keeping the server updated. If you'd rather not run a script, you can read it first: it's one file, and its README sums up what it sets up. Or set a seeder up yourself. In short:

Build

On Debian or Ubuntu, build DigiNode DNS Seeder, DigiNode Tools' version of DigiByte's seeder, which adds support for DigiByte Core v9's testnet:

sudo apt-get install -y build-essential libssl-dev libboost-dev git dnsutils
git clone https://github.com/DigiNode-Tools/diginode-dns-seeder
cd diginode-dns-seeder && make
Run

It answers DNS on port 53, so run it as root, or with CAP_NET_BIND_SERVICE (see the service file below). The email has its @ replaced by a dot:

sudo ./dnsseed -h dgbseed.yourdomain.com -n seedserver.yourdomain.com -m you.yourdomain.com -a 203.0.113.10 -p 53

For testnet, add --testnet --minheight 600000 (the minimum height leaves out nodes that are stuck or on their own fork). All its options: ./dnsseed --help.

DNS records
The same as with the script: see Add the DNS records. Then check with dig +short dgbseed.yourdomain.com.
Open the port
Allow UDP port 53 in, in the server's firewall and your provider's.
Keep it running
Run it as a systemd service, so it starts at boot and restarts if it stops, and turn on automatic security updates (unattended-upgrades).
A systemd service file for the seeder
[Unit]
Description=DigiByte DNS seeder (mainnet)
After=network-online.target
Wants=network-online.target

[Service]
User=dgbseeder
ExecStart=/usr/local/bin/digibyte-seeder -h dgbseed.yourdomain.com -n seedserver.yourdomain.com -m you.yourdomain.com -a 203.0.113.10 -p 53
StateDirectory=dgbseeder-mainnet
WorkingDirectory=/var/lib/dgbseeder-mainnet
AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

Install the program as /usr/local/bin/digibyte-seeder, create the user (sudo useradd --system --no-create-home --shell /usr/sbin/nologin dgbseeder), save this as /etc/systemd/system/digibyte-seeder-mainnet.service, then sudo systemctl enable --now digibyte-seeder-mainnet.

Both seeders on one IP address (dnsdist)

Only one program can use port 53. Put dnsdist there (sudo apt-get install -y dnsdist), run the seeders with -a 127.0.0.1 -p 5301 (mainnet) and -a 127.0.0.1 -p 5302 (testnet), point both seed names' NS records at the same server name, and use this as /etc/dnsdist/dnsdist.conf:

setLocal("203.0.113.10:53")
setACL({"0.0.0.0/0", "::/0"})
setSecurityPollSuffix("")
addAction(MaxQPSIPRule(50), DropAction())
addAction(TCPRule(true), RCodeAction(DNSRCode.REFUSED))

newServer({address="127.0.0.1:5301", pool="mainnet"})
local mainnet = newSuffixMatchNode()
mainnet:add("dgbseed.yourdomain.com.")
addAction(SuffixMatchNodeRule(mainnet), PoolAction("mainnet"))

newServer({address="127.0.0.1:5302", pool="testnet"})
local testnet = newSuffixMatchNode()
testnet:add("dgbtestnetseed.yourdomain.com.")
addAction(SuffixMatchNodeRule(testnet), PoolAction("testnet"))

addAction(AllRule(), RCodeAction(DNSRCode.REFUSED))

With automatic updates, keep changed config files (dpkg's --force-confold), or dnsdist won't be updated: it's what DigiNode Seeder sets up.

Done? Next: add your seeder(s) to DigiByte Core

3Add your seeder(s) to DigiByte Core

Nodes only ask the seeders written into DigiByte Core, so your seeder only starts helping once it is listed there. You ask for that with a pull request (PR) that adds one line to src/kernel/chainparams.cpp. Once it is merged, it goes out with the next release, and nodes start using your seeder as they update.

Before you ask

  • Make sure your seeds work from the internet. Run diginode-seeder on your server: it checks them, shows whether they are in DigiByte Core yet and, if not, the exact line to add. Once they work, you can ask straight away.
  • Only ask if you'll keep the server running: the developers want seeds that stay up.
  • You need a GitHub account (free, at github.com/signup). The line you add includes your name and GitHub handle, so the developers can reach you if your seeder ever has a problem.

The easy way: let your AI assistant do it

If you're not familiar with Git and GitHub, this is the simplest way. Use the desktop app of the AI assistant you prefer (such as Claude or ChatGPT) on your own computer: it can make the pull request in your web browser or on the command line. It checks your seeder first, prepares everything, and shows it to you before anything is published.

On your server, run:

diginode-seeder --ai-prompt

It asks your name and GitHub handle, then prints a prompt with all your details filled in. Copy it and paste it into your AI assistant. It looks like this:

Show the prompt
I run a DigiByte DNS seeder (set up with DigiNode Seeder) and want it added to DigiByte Core. Please prepare a pull request for me. I'm not familiar with Git, so explain each step briefly as you go. My details: - DigiByte mainnet seed: dgbseed.yourdomain.com (goes in the mainnet list; it currently returns about 25 nodes) - DigiByte testnet (v9, testnet26) seed: dgbtestnetseed.yourdomain.com (goes in the testnet list; it currently returns about 10 nodes) - My name as it should appear: Your Name - My GitHub handle: your-github-handle - Running since: 1 March 2027 You can do this in my web browser on GitHub's website, or on the command line with git and the GitHub CLI (gh), whichever works best for you. Steps: 1. Check each seed name answers from the internet: each of <name> and x9.<name> should return several IP addresses (for example with `dig +short <name>`, nslookup, or an online DNS lookup). Stop and tell me if any returns nothing. 2. Check I'm signed in to GitHub. If I don't have a GitHub account, stop and tell me to create one at https://github.com/signup first. 3. If I don't have a fork of DigiByte-Core/digibyte yet, create one in my GitHub account (a public copy, which is normal and fine to do before my OK). Work on a new branch from the latest `develop` branch. (On GitHub's website, editing the file on the develop branch and choosing "Create a new branch for this commit and start a pull request" does this.) 4. In src/kernel/chainparams.cpp, add these lines, each at the end of its list (mainnet: under "// DigiByte MAINNET DNS Seed Server:", testnet: under "// DigiByte TESTNET DNS Seed Servers:"), copying the format of the lines above exactly: At the end of the mainnet list: vSeeds.emplace_back("dgbseed.yourdomain.com"); // Your Name @your-github-handle At the end of the testnet list: vSeeds.emplace_back("dgbtestnetseed.yourdomain.com"); // Your Name @your-github-handle Change nothing else in the file. 5. Before anything is published, show me the change, the commit message, the pull request title and its description, and wait for my OK. - Commit message: like "net: Add <seed name> DNS seed", with no @ mentions (DigiByte's contribution rules). - Title: starts with "net:". - Description: which seed(s) it adds, who runs them, since when, and that they answer plain and x9. queries (with the number of addresses each returned). 6. Only after I say yes: commit, and open the pull request against DigiByte-Core/digibyte, base branch `develop`. Give me the link, and tell me how to follow the reviewers' comments.

Or yourself, on GitHub's website

Nothing to install:

  1. Sign in to GitHub and open src/kernel/chainparams.cpp on the develop branch.
  2. Click the pencil (Edit this file). GitHub makes your own copy (a fork) of DigiByte Core.
  3. Find the right list and add your line at the end of it: for mainnet, the list under // DigiByte MAINNET DNS Seed Server:; for testnet, the list under // DigiByte TESTNET DNS Seed Servers:.
vSeeds.emplace_back("dgbseed.yourdomain.com"); // Your Name @your-github-handle

Copy the lines above it exactly, with the same spacing and a semicolon at the end, and change nothing else.

  1. Click Commit changes… and write a message like net: Add dgbseed.yourdomain.com DNS seed. DigiByte's rules say commit messages must not contain @ mentions, so leave your handle out of it: it only goes in the line of code. Choose Create a new branch for this commit and start a pull request, then Propose changes.
  2. Check the pull request goes into DigiByte-Core/digibyte, branch develop. Give it a title starting with net:, and a short description, for example:
Adds dgbseed.yourdomain.com as a mainnet DNS seed, run by Your Name. It has been running since 1 March on its own server (set up with DigiNode Seeder) and returns about 25 nodes, for both plain and x9. queries. I'll keep it running, and I'm happy to be contacted if it ever has a problem.
  1. Click Create pull request and reply to any comments from the reviewers.

Running both seeders? Add both lines in the same pull request.

Or from the terminal

For anyone comfortable with git. You need the GitHub CLI (gh), signed in with gh auth login.

Fork DigiByte Core and get the develop branch:

gh repo fork DigiByte-Core/digibyte --clone=false
git clone --branch develop --single-branch --depth 50 https://github.com/<your-github-handle>/digibyte.git
cd digibyte
git remote add upstream https://github.com/DigiByte-Core/digibyte.git
git fetch upstream develop
git switch -c add-seed upstream/develop

Add your line at the end of the mainnet (or testnet) list, matching the lines above it, then check that only your line changed:

grep -n 'vSeeds.emplace_back' src/kernel/chainparams.cpp
nano src/kernel/chainparams.cpp
git diff

Commit (no @ mentions in the message), push to your fork and open the pull request:

git commit -am "net: Add dgbseed.yourdomain.com DNS seed"
git push -u origin add-seed
gh pr create --repo DigiByte-Core/digibyte --base develop --title "net: Add dgbseed.yourdomain.com DNS seed" --body "Adds dgbseed.yourdomain.com as a mainnet DNS seed, run by Your Name. Running since 1 March (set up with DigiNode Seeder); returns about 25 nodes for plain and x9. queries."

After it's merged

Keep your seeder running: it updates itself with security updates, and diginode-seeder --update updates DigiNode Seeder and the seeders. If you ever need to stop it, see When you want to stop.

4

Look after it

However you set it up, keep an eye on it:

Set up alerts
Use a monitoring service to tell you if your seeder stops working. A free one such as UptimeRobot or HetrixTools can email you if your server stops answering: add a port check on seedserver.yourdomain.com, port 53 (allow TCP port 53 in your provider's firewall too).
Check on it
Log in now and then, at least once a month, and keep the seeder software up to date.

With the automatic setup, run diginode-seeder to see how your seeders are doing. The login message also tells you if a seeder has stopped, or if the server is waiting to restart after an update.

diginode-seeder
DigiNode Seeder's status: dnsdist and both seeders running with their node counts, both seed names working from the internet, automatic security updates on, and the line to add to DigiByte Core.
The status: running, reachable, kept up to date, and what to add to DigiByte Core.

Everything the command can do:

diginode-seeder
How it's doing, and whether your seeds are in DigiByte Core yet (with the line to add, if not).
--dns
Check your DNS records, and explain anything that's wrong.
--ai-prompt
A ready-made prompt for your AI assistant to add your seed to DigiByte Core (see step 3).
--update
Update DigiNode Seeder and the seeders. It keeps your settings and only restarts what changed.
--reconfigure
Change the names, or add a testnet seeder later.
--motd on|off
Show or hide the login message.
--firewall on|off
Turn the firewall (only SSH and DNS let in) on or off.
--auto-updates on|off
Turn automatic security updates on or off (--auto-restart for the restarts).
--uninstall
Stop and remove the seeders. Remember to remove your DNS records too, and your seed from DigiByte Core if it's listed.
--help
All the options.

Updating, changing and removing need administrator rights: if you aren't logged in as root, it asks for your password.

When you want to stop

Nodes keep asking your seed for as long as it's in their copy of DigiByte Core, so please don't just switch it off:

Tell DigiByte Core
Open a pull request removing your seed's line (your AI assistant can do this too), or create an issue at DigiByte Core, so the team are aware.
Keep it running a little longer
If you can, keep it running until a release without your seed is out, so nodes have time to move on.
Remove it
Run diginode-seeder --uninstall on the server, then delete the DNS records for your seed names and seedserver.yourdomain.com.

Need help? Ask in the DigiNode Tools Telegram group.

Please Support DigiNode Tools

DigiNode Seeder is free to use, as part of DigiNode Tools, and sponsors make it possible for me to keep improving it. If it has helped you, please consider supporting my work: