Post
Topic
Board Altcoin Discussion
Re: Devcoin
by
twobits
on 26/04/2013, 12:05:57 UTC
Quote
I do not know what exactly a DNS seed is, what exactly it is that I have to set up at the DNS-provider, in the zone-records of the domains I want to put DNS seeds into.

Once I have all those set up I can look into putting them into the code if our old caode even has DNS seed support in it.

(If it doesn't I can just find IP addresses to put into the last resort IP addresses list that is in the code.)

-MarkM-


https://en.bitcoin.it/wiki/Network

Bootstrapping

You choose which peers to connect to by sorting your address database by the time since you last saw the address and then adding a bit of randomization.

Bitcoin has three methods of finding peers.

Addr
The addr messages described above create an effect similar to the IRC bootstrapping method. You know reasonably quickly whenever a peer joins, though you won't know for a while when they leave.
Bitcoin comes with a list of addresses known as "seed nodes". If you are unable to connect to IRC and you've never connected to the network before, the client will update the address database by connecting to one of the nodes from this list.
The -addnode command line option can be used to manually add a node. The -connect option can force bitcoin to connect only to a specific node.

DNS
Bitcoin looks up the IP Addresses of several host names and adds those to the list of potential addresses. This is the default seeding mechanism, as of v0.6.x and later.

IRC
As-of version 0.6.x of the Bitcoin client, IRC bootstrapping is no longer enabled by default. The information below is accurate for most versions prior.

Bitcoin joins a random channel between #bitcoin00 and #bitcoin99 on irc.lfnet.org. Your nick is set to an encoded form of your IP address. By decoding all the nicks of all users on the channel, you get a list of all IP addresses currently connected to Bitcoin.
For hosts that cannot make outbound connections on port 6667, the lfnet servers are also listening on port 7777.

Now imagine all the words bitcoin, say devcoin Smiley

Except that  does not match the code.

Seed nodes are not round robin dns either btw.

There are two types of seed nodes, one of which must be a fixed ip address, which is what we can easily support in the code right now.  The other is a custom DDNS server (that is what the dns seeds code it meant to talk to, not round robin dns for a single node).