- Low end VPS running Ubuntu 16.04
- Domain name with ability to add an NS, A Records
For this example we will use example domain 'example.com'
Create a 'seeder1' sub-domain NS record in DNS.
Example: seeder1.example.com NS record pointed to vps1.example.com
Create a 'vps1' sub-domain A record in DNS
Example: vps1.example.com A record pointed to YOUR_VPS_IP_ADDRESS_HERE
Provide your sub-domain name created in Step 1 to BitcoinZ Team to update seeder code and wait until update is completed.
apt-get update
apt-get install build-essential libboost-all-dev libssl-dev
iptables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-port 5353
useradd -m -s /bin/bash seeder
su seeder
cd ~
git clone https://github.com/btcz/bitcoinz-seeder.git
make
screen -S seeder
./dnsseed -p 5353 -h seeder1.example.com -n vps1.example.com -m [email protected]
Detach from screen with CTRL A+D
Re-attach to screen with screen -r seeder
- If you have a firewall on your VPS, you need to make sure you allow connections for UDP port 53 for IPv4 and IPv6 (if enabled)
- You may need to wait a short time for the DNS records to update globally
You can test if your seeder is responding with node IPs type typing:
dig seeder1.example.com A
- If you decided to run Ubuntu 18.04+ you might need to turn off systemd-resolved from root by entering the following commands:
sudo systemctl disable systemd-resolved
sudo systemctl stop systemd-resolved