BTCGPU / lnd

Lightning Network Daemon ⚡️
MIT License
3 stars 1 forks source link

Deploy DNS Seeder for LND #5

Open h4x3rotab opened 6 years ago

h4x3rotab commented 6 years ago

DNS Seeder

https://github.com/BTCGPU/lseed.git

Instructions

  1. Run a LND instance with macaroons enabled. See also: #2
  2. Download and install lseed
    git clone https://github.com/BTCGPU/lseed.git $GOPATH/src/github.com/cdecker/lseed
    cd $GOPATH/src/github.com/cdecker/lseed
    glide install
    go install
  3. Run lseed in LND mode with BTG root domain and listen to udp:10053 (optional)
    lseed -debug -listen 0.0.0.0:10053 -root-domain lseed.testnet.bitcoingold.org

Deploy as DNS Seeder

LND registers a DNS Seeder by two domains: the root domain of the seeder, and the hostname of the name server. For example, the configuration of BTG lightning network testnet is:

The name server must accept tcp dns queries in case the routers may drop long dns query result. However dns over tcp is not supported by lseed. We suggest to run lseed as a internal service and point a dns server like BIND to lseed as its upstream name server.

LND related Command flags

(TBD: check lseed --help and lncli --help)

Test

dig lseed.test.bitcoingold.org @127.0.0.1 -p 10053
h4x3rotab commented 6 years ago

Really weird. On some machine I got errors when running glide install:

[ERROR] Error scanning google.golang.org/grpc/internal/backoff: cannot find package "." in:
    /root/.glide/cache/src/https-google.golang.org-grpc/internal/backoff

However after that I successfully build lseed by:

go get
go install