<p>Bitcoin Core does not solely rely on the DNS seeders to find nodes to connect to. The peer discovery system first starts with a local database of known nodes that it gathers after having had connections. DNS seeding or fall back seed nodes are only used if the peers database is empty, i.e. the first time you run the software. So this message means that the peers database is not empty, so it will skip the DNS seeders and go straight to connecting to peers from the database.</p>

<blockquote>
  <p>What I need to do is to connect two bitcoin daemons that are running in the same machine, with a different genesis block than the main blockchain (both daemons share the same genesis block).</p>
</blockquote>

<p>Use the <code>-connect=&lt;ip&gt;:&lt;port&gt;</code> startup option. This option means that the node will connect only to the specified IP address and port and nothing else; it won't do any other peer discovery.</p>

CC BY-SA 3.0
2018-03-21T19:26:25.327Z
2018-03-21T19:26:25.327Z
Ava Chow
<p>I'm trying to avoid bitcoin daemon trying to connect to other addresses but the ones that I set in bitcoin.conf.</p>

<p>I've commented <code>vSeeds</code> in chainparams.cpp and I've cleared vFixedSeeds in this way:</p>

<p><code>
        vFixedSeeds = std::vector&lt;SeedSpec6&gt;(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main));
        vFixedSeeds.clear();
</code></p>

<p>But the daemon still tries to connect with some addresses. What I am missing? </p>

<p>What I need to do is to connect two bitcoin daemons that are running in the same machine, with a different genesis block than the main blockchain (both daemons share the same genesis block).</p>

<bitcoin-core><bitcoin-core-development>
What does "P2P peers available. Skipped DNS seeding" means?
hhaamm
# What does "P2P peers available. Skipped DNS seeding" means?

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

I'm trying to avoid bitcoin daemon trying to connect to other addresses but the ones that I set in bitcoin.conf.

I've commented `vSeeds` in chainparams.cpp and I've cleared vFixedSeeds in this way:

`vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main));
vFixedSeeds.clear();`

But the daemon still tries to connect with some addresses. What I am missing?

What I need to do is to connect two bitcoin daemons that are running in the same machine, with a different genesis block than the main blockchain (both daemons share the same genesis block).

**Tags:** bitcoin-core, bitcoin-core-development


---

## 1 answers

### Answer by username_1 on 2018-03-21. Score: 1 | Accepted answer

Bitcoin Core does not solely rely on the DNS seeders to find nodes to connect to. The peer discovery system first starts with a local database of known nodes that it gathers after having had connections. DNS seeding or fall back seed nodes are only used if the peers database is empty, i.e. the first time you run the software. So this message means that the peers database is not empty, so it will skip the DNS seeders and go straight to connecting to peers from the database.

> What I need to do is to connect two bitcoin daemons that are running in the same machine, with a different genesis block than the main blockchain (both daemons share the same genesis block).

Use the `-connect=<ip>:<port>` startup option. This option means that the node will connect only to the specified IP address and port and nothing else; it won't do any other peer discovery.


---

