Add script to test the dns seeds #11967

pull jonasschnelli wants to merge 1 commits into bitcoin:master from jonasschnelli:2017/12/seed_test changing 1 files +99 −0
  1. jonasschnelli commented at 8:57 PM on December 20, 2017: contributor

    Simple script parses the chainparams.cpp file and tests the listed seeds for...

    • how many IPv4 addresses they can resolve (threshold for success is 4)
    • how many IPv6 addresses they can resolve (threshold for success is 4)
    • how many connectable IPv4 peers are returned (threshold for success is 4)

    Useful for monitoring as it can also test a single seed by passing in the seed domain as parameter.

    My python skills are very limited,... please nitpick.

    Example output:

    Testing seed.bitcoin.sipa.be ...
      found IPv4: 50
      Testing port 8333...!.!.....!.!.........!.!.........!.!...........!.!........ 40 connectable peers
      found IPv6: 30
    Status: OKAY
    
    Testing dnsseed.bluematt.me ...
      found IPv4: 42
      Testing port 8333.......................................... 42 connectable peers
      found IPv6: 24
    Status: OKAY
    
    Testing dnsseed.bitcoin.dashjr.org ...
      found IPv4: 48
      Testing port 8333.........!.!.!.!.!.........................!.!...!.!.... 38 connectable peers
      found IPv6: 28
    Status: OKAY
    
    Testing seed.bitcoinstats.com ...
      found IPv4: 50
      Testing port 8333.................................................. 50 connectable peers
      found IPv6: 50
    Status: OKAY
    
    Testing seed.bitcoin.jonasschnelli.ch ...
      found IPv4: 48
      Testing port 8333.........................!.!...................... 46 connectable peers
      found IPv6: 28
    Status: OKAY
    
    Testing seed.btc.petertodd.org ...
      found IPv4: 48
      Testing port 8333.....!.!.!.!...!.!.....!.!...........!.!.........!.!........ 36 connectable peers
      found IPv6: 28
    Status: OKAY
    
    Testing testnet-seed.bitcoin.jonasschnelli.ch ...
      found IPv4: 46
      Testing port 8333.!..!.!.......!.!.!.!...!.!.!.!.!.!.!.!.!.!...!.!...!.!.!.!.!.!...!.!.!.!.!. 16 connectable peers
      found IPv6: 26
    Status: OKAY
    
    Testing seed.tbtc.petertodd.org ...
      found IPv4: 48
      Testing port 8333..!.!.!...!.!...!.!.!.!.!.!.!.!.!.!.!.!.!.!...!.!...!.!...!.!.!.!.!.!...!.!.!.!..! 14 connectable peers
      found IPv6: 28
    Status: OKAY
    
    Testing seed.testnet.bitcoin.sprovoost.nl ...
      found IPv4: 42
      Testing port 8333.!.!.!.!.!.!.!.!...!.!.!.!.!.!.!.!.!.!.!.!...!.!.!.!.!.!.!.!.!.!.!.!.....!.! 8 connectable peers
      found IPv6: 24
    Status: OKAY
    
    Testing testnet-seed.bluematt.me ...
      found IPv4: 2
      Testing port 8333.. 2 connectable peers
      found IPv6: 4
    Status: Failed
    
  2. Add script to test the dns seeds a27801080a
  3. jonasschnelli added the label Scripts and tools on Dec 20, 2017
  4. laanwj commented at 9:01 PM on December 20, 2017: member

    Wouldn't maintainer-tools be a better place for this? I already have a script for that there: https://github.com/bitcoin-core/bitcoin-maintainer-tools/blob/master/check-dnsseeds.py Let's improve it there.

  5. laanwj commented at 9:06 PM on December 20, 2017: member

    Concept ACK anyhow

  6. jonasschnelli commented at 10:15 PM on December 20, 2017: contributor

    Argh. How could I miss that... yes. let me move it there.

  7. fanquake commented at 1:08 AM on December 21, 2017: member

    Closing, as this will be added/used to improve the script in the https://github.com/bitcoin-core/bitcoin-maintainer-tools/ repo.

  8. fanquake closed this on Dec 21, 2017

  9. laanwj commented at 8:36 AM on December 21, 2017: member

    @jonasschnelli at least your implementation seems to be a lot better/thorough than my one-off hacky script :)

  10. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-24 12:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me