tomchan
Member
OP
- Joined:
- Jul 2024
- Posts:
- 202
- From:
- Bristol, UK
Fun little project that I absolutely do not recommend for anything you care about.
You will need:
- A €4/month cloud VPS (I used Hetzner's smallest CX11)
- Nsd or knot (not BIND, memory too fat)
- A secondary somewhere else you actually trust
# /etc/nsd/nsd.conf snippet
server:
ip-address: 0.0.0.0
port: 53530 # because NAT port forward
zone:
name: "tomslab.example.com"
zonefile: "/var/lib/nsd/tomslab.example.com"
It actually works. NSD in 128MB with a small zone. I have been running this for 8 months.
Do not do this for:
- Anything with customers
- Anything where "my DNS was down" is a bad answer
- Your resume
The secondary is not optional. I shouldn't need to say this.
works on my bench ¯\_(ツ)_/¯
wilmaethqn44
Member
- Joined:
- Jun 2024
- Posts:
- 135
- From:
- Cardiff, UK
If the secundary is not optional... why the guide without it? I have a small site for my bakery and I dont want to break things
frames, tables, still valid HTML
tomchan
Member
OP
- Joined:
- Jul 2024
- Posts:
- 202
- From:
- Bristol, UK
To be fair I did say "don't" in the title and three times in the post. The secondary is Cloudflare for me, but any registrar with slave DNS works.
works on my bench ¯\_(ツ)_/¯
wilmaethqn44
Member
- Joined:
- Jun 2024
- Posts:
- 135
- From:
- Cardiff, UK
So I need two things? The cheap one and another one? My registrar is 123 Reg, I dont know if they do that
frames, tables, still valid HTML
larryjeong
Member
- Joined:
- Jun 2024
- Posts:
- 179
- From:
- Texas, US
Same. I got three Hetzner CX11s now, Falkenstein, Helsinki, Hillsboro. 12 EUR/year each on the old pricing. Knot on all of them, hidden primary setup. Overkill for my junk domains but I like the symmetry.
$3/year. 128MB RAM. Pure happiness.
danfra
Member
- Joined:
- Jun 2024
- Posts:
- 159
- From:
- Frankfurt, DE
For DNS it matters when the packet is 2 Tbps of garbage aimed at your single IP. Hetzner will nullroute you before your NSD process notices. I have seen this. Anycast or at least provider-level DDoS protection is not optional for anything public-facing, which is why I tell people to just use their registrar or Cloudflare or Route53.
mitigated 800Gbps before breakfast