sipa / bitcoin-seeder

401 stars 975 forks source link

how to setup nameservers correctly? #63

Open olddocks opened 6 years ago

olddocks commented 6 years ago

i want to run a dns seeder for bitcoin. i have registered a domain. How to setup nameservers pointing to dns seeder?

I currently have nameservers setup correctly with godaddy. I have added vps host ip address to register as a nameserver.

Type | Name | Value | TTL | Actions
-- | -- | -- | -- | --
A | @ | x.x.xxxx.x | 1 Hour | Edit
A | dnsseed | x.x.xxxx.x | 1 Hour | Edit
A | vps | x.x.xxxx.x | 1 Hour | Edit
NS | @ | ns59.domaincontrol.com | 1 Hour |  
NS | @ | ns60.domaincontrol.com | 1 Hour |  
NS | dnsseed | vps | 1 Hour

and i run

./dnsseed -h dnsseed.example.com -n vps.example.com but when i check it, the dns seeder is NOT listening on port 53. I run with ubuntu LTS 16 and i am running both daemon and dnseeder on the same machine.

This also not working

dig dnsseed.mydomain.com

$ dig dnsseed.example.org

; <<>> DiG 9.8.3-P1 <<>> dnsseed.example.org ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 3808 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

What is wrong here? I have opened port 53 TCP/UDP

DemonRx commented 5 years ago

@olddocks I'm working on getting this setup as well, and have gotten stuck with this too. Did you ever resolve how to get the NS records setup ? I'm using cloudflare...

ccconnor commented 5 years ago

@D3m0nKingx Did you resolve it? I'm using cloudflare too.

DemonRx commented 5 years ago

@heyconnor ty for pinging me I just realized to ask a dev on lux's discord. They just cloned/setup one for their project. I'll see to it if they can shed some light on this.

DemonRx commented 5 years ago

@heyconnor Solution ... just setup a CNAME record for your domain with cloudflare. That will setup the NS record automatically, which you can then point your nodes to. Cloudflare's nameservers is the NS record :)

image

Then just add your seeder's URL to your nodes' coin.conf file or into chainparams.cpp. For example

seeder.YourDomain.com where "seeder" is the CNAME

ccconnor commented 5 years ago

@D3m0nKingx Thanks, I've setup.