Skip to content

Deploy DNS Seeder for LND #5

@h4x3rotab

Description

@h4x3rotab

DNS Seeder

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

Instructions

  1. Run a LND instance with macaroons enabled. See also: Technical Preview 2 #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
  1. 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:

  • lseed.testnet.bitcoingold.org: Root domain hosted by our lseed name server.
  • soa.testnet.bitcoingold.org: A/AAAA record pointing to our name server.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions