Jump to content

DNS Seeder Setup


buzzkillb
 Share

Recommended Posts

I am using he.net free dns for the setup of nameservers. https://dns.he.net

Get a domain like denarius.guide for our example. The dns seeder nameserver will be dnsseed.denarius.guide

Go to your domain and point it to the given he.net servers so he.net is handling your records.

Lets add the first part.

image.thumb.png.cd3870e6d58c9d64a970ec692241c88d.png

This creates

dnsseed.denarius.guide.	86400	IN	NS	seeder.denarius.guide.

Now lets point seeder.denarius.guide to our vps ip.

image.thumb.png.6d68e365bdc5e17f7441cadd2374b8c9.png

This creates

seeder.denarius.guide.	86400	IN	A	163.172.157.116

Also can create an AAAA record because IPv6 is the future right?

image.thumb.png.d233e5d9318be2112375cebe5b6451d6.png

This creates

seeder.denarius.guide.	86400	IN	AAAA	2001:bc8:47a0:1933::1

On the vps side we need our dns seeder. Clone a seeder repo, get dependencies, and compile. This could vary depending on OS and VPS.

git clone https://github.com/buzzkillb/d-seeder
sudo apt-get install build-essential libboost-all-dev libssl-dev
make -j2

Run the seeder for a while, and wait for the DNS to propagate. I also sudo apt install tor just because

./dnsseed -h dnsseed.denarius.guide -n seeder.denarius.guide -m buzz.denarius.io -o 127.0.0.1:9050

How to check if this is working.

https://www.whatsmydns.net/#NS/dnsseed.denarius.guide

Link to comment
Share on other sites

I am using Scaleway VPS which only allows Ubuntu 18.04 Bionic for the cheaper plans. systemd-resolve appears to take over port 53.

lsof -i -P -n | grep LISTEN

and we see port 53

image.thumb.png.1b34cce9ef973d12022c0cb1c912477b.png

what I did to remove this was

sudo nano /etc/systemd/resolved.conf

then edit resolved.conf to this

DNS=8.8.8.8
DNSStubListener=no

restart systemd-resolved

sudo systemctl restart systemd-resolved

save old symlink

sudo mv /etc/resolv.conf /etc/resolv.conf.OLD

create new symlink

sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf

lets check if port 53 is there anymore

lsof -i -P -n | grep LISTEN

image.thumb.png.aacbcca6ff351410316c8f062177970d.png

its gone, now go run your seeder and wait for DNS records to propagate through the internet backbone

image.thumb.png.c86869c8a60df7582ad1a785d761ad1c.png

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...