<p>The domains listed in <code>chainparams.cpp</code> are for DNS seeders. DNS seeders are not nodes themselves, but rather are DNS servers that serve the IP addresses of nodes that are available to be connected to. These can be connected to for both a normal connection and just one to retrieve more IP addresses of nodes.</p>

<p>The IP addresses listed in <code>chainparamseeds.h</code> are the IP addresses of nodes that can be connected to. This connection can be an actual connection or just one which retrieves more IP addresses of nodes that can be connected to.</p>

<p>To setup a seed node, you just need to run a normal node for your altcoin and add its IP address to <code>chainparamseeds.h</code>. There should be a script that actually constructs this for you in <code>contrib/seeds</code>.</p>

<p>To setup a DNS seeder, you will need special software to do that for you. You can start with <a href="https://github.com/sipa/bitcoin-seeder" rel="nofollow noreferrer">this software</a> and modify it as necessary to work with your altcoin.</p>

CC BY-SA 3.0
2018-02-21T01:15:38.867Z
2018-02-21T01:15:38.867Z
Ava Chow
<p>in addition to the previous answer, you can generate the seeds using following steps :</p>

<p>change directory to contrib/seeds
then :</p>

<ul>
<li>In nodes_test.txt and nodes_main.txt set all your nodes IPs
exp
10.11.12.13:8333</li>
<li>run python3 generate-seeds.py . > ../../src/chainparamsseeds.h</li>
<li>Check your chainparamsseeds.h file</li>
</ul>

CC BY-SA 4.0
2021-03-02T12:14:14.430Z
The node_test.txt and nodes_main.txt folder are wrong... they are located in share/seeds/ also the generate-seeds.py script is in the same folder. Just for future folks coming here from Google :-)
Gladiator9120
CC BY-SA 4.0
2018-06-12T12:19:40.660Z
2018-06-12T12:33:20.963Z
2018-06-12T12:33:20.963Z
Badr Bellaj
<p>I have made an altcoin in my local machine running MacOSX. I have purchased amazon ec2 and compiling the daemon to running in unix.</p>

<p>How do i add seed nodes?</p>

<p>I see that there are two files chainparams.cpp and chainparamseeds.h. 
What is the difference between these two files?</p>

<p>chainparams.cpp</p>

<pre><code>vSeeds.emplace_back("dnsseed.thrasher.io", true);
vSeeds.emplace_back("dnsseed.litecointools.com", true);
vSeeds.emplace_back("dnsseed.litecoinpool.org", true);
vSeeds.emplace_back("dnsseed.koin-project.com", false);
</code></pre>

<p>chainparamseeds.h</p>

<pre><code>static SeedSpec6 pnSeed6_main[] = {
 {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x05,0x53,0x80,0xc7}, 9333},
    {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x05,0xa4,0xdf,0x66}, 9333},
    {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x05,0xff,0x56,0x07}, 9333},
    {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x0e,0x98,0x79,0x2d}, 9333},
    {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x0e,0xa2,0xd0,0x9d}, 9333}
</code></pre>

<altcoin><nodes>
How to add seed nodes in altcoin?
pbu
# How to add seed nodes in altcoin?

(Asked by: username_0 on 2018-02-21)

I have made an altcoin in my local machine running MacOSX. I have purchased amazon ec2 and compiling the daemon to running in unix.

How do i add seed nodes?

I see that there are two files chainparams.cpp and chainparamseeds.h.
What is the difference between these two files?

chainparams.cpp

```
vSeeds.emplace_back("dnsseed.thrasher.io", true);
vSeeds.emplace_back("dnsseed.litecointools.com", true);
vSeeds.emplace_back("dnsseed.litecoinpool.org", true);
vSeeds.emplace_back("dnsseed.koin-project.com", false);

```

chainparamseeds.h

```
static SeedSpec6 pnSeed6_main[] = {
 {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x05,0x53,0x80,0xc7}, 9333},
    {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x05,0xa4,0xdf,0x66}, 9333},
    {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x05,0xff,0x56,0x07}, 9333},
    {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x0e,0x98,0x79,0x2d}, 9333},
    {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x0e,0xa2,0xd0,0x9d}, 9333}

```

**Tags:** altcoin, nodes


---

## 2 answers

### Answer by username_1 on 2018-02-21. Score: 3 | Accepted answer

The domains listed in `chainparams.cpp` are for DNS seeders. DNS seeders are not nodes themselves, but rather are DNS servers that serve the IP addresses of nodes that are available to be connected to. These can be connected to for both a normal connection and just one to retrieve more IP addresses of nodes.

The IP addresses listed in `chainparamseeds.h` are the IP addresses of nodes that can be connected to. This connection can be an actual connection or just one which retrieves more IP addresses of nodes that can be connected to.

To setup a seed node, you just need to run a normal node for your altcoin and add its IP address to `chainparamseeds.h`. There should be a script that actually constructs this for you in `contrib/seeds`.

To setup a DNS seeder, you will need special software to do that for you. You can start with [this software](https://github.com/sipa/bitcoin-seeder) and modify it as necessary to work with your altcoin.


---

### Answer by username_2 on 2018-06-12. Score: 1

in addition to the previous answer, you can generate the seeds using following steps :

change directory to contrib/seeds
then :

* In nodes\_test.txt and nodes\_main.txt set all your nodes IPs
  exp
  10.11.12.13:8333
* run python3 generate-seeds.py . > ../../src/chainparamsseeds.h
* Check your chainparamsseeds.h file

> **Comments:**
> **username_3**: The node_test.txt and nodes_main.txt folder are wrong... they are located in share/seeds/ also the generate-seeds.py script is in the same folder. Just for future folks coming here from Google :-)  

---

