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