<p>This was answered by dhruv and sipa on IRC.</p>
<blockquote>
<p>-seednode: a peer node that is only asked to respond to GETADDR.</p>
</blockquote>
<p>(This is the bootstrapping mechanism used for Tor nodes.)</p>
<p>DNS seeds are names that resolve to the IP addresses of good full nodes. The set of IP addresses you get back changes all the time.</p>
<blockquote>
<p>Unproxied Internet access + DNS seeds =&gt; One domain name resolves to many IPs that go into addrman</p>
<p>Proxied internet access + DNS seeds =&gt; One domain name resolves to one IP that acts like a -seednode.</p>
</blockquote>
<p>The related Bitcoin Core code is <a href="https://github.com/bitcoin/bitcoin/blob/6718fbe90a0d9384c4d954b65f1fd4e69838d10c/src/net.cpp#L1636" rel="nofollow noreferrer">here</a>. <code>git grep</code> for <code>CConnman::ThreadDNSAddressSeed()</code></p>

CC BY-SA 4.0
2021-09-06T19:29:36.083Z
2021-09-06T19:29:36.083Z
Michael Folkson
<p>How does using DNS seeds to find initial peers compare to using <code>-seednode</code>?</p>
<p>This was asked by prayank on IRC and has been paraphrased.</p>
<p>A related question is <a href="https://bitcoin.stackexchange.com/questions/14371/what-is-a-dns-seed-node-vs-a-seed-node">here</a>.</p>

<p2p><peer-discovery><dns>
How does using DNS seeds to find initial peers compare to using seednode?
Michael Folkson
# How does using DNS seeds to find initial peers compare to using seednode?

(Asked by: username_0 on 2021-09-06)

How does using DNS seeds to find initial peers compare to using `-seednode`?

This was asked by prayank on IRC and has been paraphrased.

A related question is [here](https://bitcoin.stackexchange.com/questions/14371/what-is-a-dns-seed-node-vs-a-seed-node).

**Tags:** p2p, peer-discovery, dns


---

## 1 answers

### Answer by username_0 on 2021-09-06. Score: 2 | Accepted answer

This was answered by dhruv and sipa on IRC.

> -seednode: a peer node that is only asked to respond to GETADDR.

(This is the bootstrapping mechanism used for Tor nodes.)

DNS seeds are names that resolve to the IP addresses of good full nodes. The set of IP addresses you get back changes all the time.

> Unproxied Internet access + DNS seeds => One domain name resolves to many IPs that go into addrman
>
> Proxied internet access + DNS seeds => One domain name resolves to one IP that acts like a -seednode.

The related Bitcoin Core code is [here](https://github.com/bitcoin/bitcoin/blob/6718fbe90a0d9384c4d954b65f1fd4e69838d10c/src/net.cpp#L1636). `git grep` for `CConnman::ThreadDNSAddressSeed()`


---

