<oembed><type>rich</type><version>1.0</version><author_name>npub1e46n428mcyfwznl7nlsf6d3s7rhlwm9x3cmkuqzt3emmdpadmkaqqjxmcu</author_name><author_url>https://nostr.ae/npub1e46n428mcyfwznl7nlsf6d3s7rhlwm9x3cmkuqzt3emmdpadmkaqqjxmcu</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2011-08-03&#xA;🗒️ Summary of this message: Bitcoin&#39;s DNS seeds are experiencing issues due to bad nodes, slowing down peer bringup for Android apps. A custom DNS server may be a solution.&#xA;📝 Original message:On Wed, 2011-08-03 at 12:04 +0200, Mike Hearn wrote:&#xA;&gt; This is expected to happen from time to time of course as it&#39;s&#xA;&gt; inherently racy, but there are a lot of bad nodes appearing in the DNS&#xA;&gt; seeds.&#xA;&#xA;&gt; $ nmap -oG /tmp/x -p 8333 `dig +short bitseed.bitcoin.org.uk&#xA;&gt; dnsseed.bluematt.me bitseed.xf2.org`&#xA;&gt; ...&#xA;&gt; Nmap done: 48 IP addresses (25 hosts up) scanned in 9.80 seconds&#xA;&#xA;&gt; $ grep -c &#39;closed&#39; /tmp/x&#xA;&gt; 6&#xA;&#xA;&gt; So of 48 IPs returned only 19 are actually usable. This is slowing&#xA;&gt; down peer bringup for the Android apps, which don&#39;t currently save the&#xA;&gt; addresses of last-used peers (yes, I know we should fix this).&#xA;Its actually much, much less.  You forgot to grep for filtered, which&#xA;are also worthless and you didn&#39;t make an actual connection to the node,&#xA;meaning there is no way to tell if the node has its connection slots&#xA;full (a node which has the maximum connection count will ack a syn, but&#xA;will drop the connection after the first message, so nmap thinks the&#xA;port is open).&#xA;I just tested and I show 0 accepting from bitseed.xf2.org and 0 from&#xA;bitcoin.bitcoin.co.uk.  dnsseed.bluematt.me rotates every 2 minutes to&#xA;the most recently checked so it tends to be pretty good if you get it&#xA;right after a rotate, if you wait to long, those slots fill up quick.&#xA;&gt; &#xA;&gt; I was talking to a friend a few days ago about Bitcoin, he seemed&#xA;&gt; interested. I&#39;m hoping he might take on DNS seeding as a project. A&#xA;&gt; custom DNS server that watches the network to find long-lived peers&#xA;&gt; that run the latest version would be helpful for resolving this kind&#xA;&gt; of thing.&#xA;Point him to https://github.com/TheBlueMatt/dnsseed it could use a bit&#xA;of cleanup, but it works.&#xA;If a different DNS Server were used to could pull directly from the&#xA;database in a more dynamic way it would probably work better too (it was&#xA;originally set up on MySQL and PowerDNS, but that is quite a resource&#xA;hog compared to SQLite and BIND, but the original backend is still there&#xA;and could work if you have a beefy enough server).&#xA;&#xA;Matt&#xA;-------------- next part --------------&#xA;A non-text attachment was scrubbed...&#xA;Name: signature.asc&#xA;Type: application/pgp-signature&#xA;Size: 836 bytes&#xA;Desc: This is a digitally signed message part&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20110803/3cbcb018/attachment.sig&gt;</html></oembed>