dnsseeder

module
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2020 License: Apache-2.0, MIT

README

Safecoin DNS seeder

This is a CoreDNS plugin that scrapes addresses of peers from a Safecoin network. It's intended as a safer, more configurable, and more scalable replacement for the safecoin-seeder project.

It's written in Go and uses btcsuite for low-level networking.

Build instructions

This code cannot be used independently of CoreDNS. See coredns-safecoin for instructions.

CoreDNS configuration

A sample Corefile that configures seeders on a domain for each network, using two local Safecoin nodes for bootstrap:

mainnet.seeder.example.com {
    dnsseed {
        network mainnet
        bootstrap_peers 127.0.0.1:8770
        crawl_interval 30m
        record_ttl 600
    }
}

testnet.seeder.example.com {
    dnsseed {
        network testnet
        bootstrap_peers 127.0.0.1:18770
        crawl_interval 15m
        record_ttl 300
    }
}

# Returns 200 OK on .:8080/health
. {
    health :8080
}

License

The seeder is dual-licensed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL