Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy DNS Seeder for LND #5

Open
h4x3rotab opened this issue Aug 12, 2018 · 1 comment
Open

Deploy DNS Seeder for LND #5

h4x3rotab opened this issue Aug 12, 2018 · 1 comment

Comments

@h4x3rotab
Copy link
Member

h4x3rotab commented Aug 12, 2018

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
@h4x3rotab h4x3rotab changed the title Deploy dns seeder Deploy DNS Seeder for LND Aug 12, 2018
@h4x3rotab h4x3rotab mentioned this issue Aug 12, 2018
15 tasks
@h4x3rotab
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant