Live data from Hacker News

Implement DNS in a Weekend

implement-dns.wizardzines.com

61–70 of 77 posts

Re: Implement DNS in a Weekend

#61
post #58
post #37

Earlier quoted context omitted.

The Pi-hole isn't hosted on my local network, but on my Tailscale network because it's running on a VPS. My router can't run Tailscale, so that's not possible.

If you upgrade to ZeroTier you can get it running on OpenWRT and MikroTik routers https://help.mikrotik.com/docs/display/ROS/ZeroTier

Good luck installing OpenWRT on the silly router provided by my ISP.

Re: Implement DNS in a Weekend

#62

Earlier quoted context omitted.

I missed the “you’re using” at first, and was about to ask why on earth you keep maintaining host lists :P Totally agree, and at the same time, it’s so painful that there’s a nice haiku — It’s not DNS There’s no way it’s DNS It was DNS

> It was DNS To be fair, sometimes it's BGP.

At least the haiku still works, though

Re: Implement DNS in a Weekend

#63
post #51

Earlier quoted context omitted.

Can't tell if this is sarcasm or not :) On one hand, like all Java code, this is really really verbose. But on the other, it's not that complicated—every line seems like it corresponds to some part of the DNS spec.

It’s verbose but not complicated. Verboseness doesn’t make something uneasy, it means you tell your IDE to autocomplete.

Yeah, I'll take a verbose but uncomplicated API any day of the week. Straight-forwardly named classes/functions, no surprising behavior, one concept == one name, and a good reference … that's how stuff gets done.

… always better than something that tries to hide things from you and does the wrong thing sometimes.

Re: Implement DNS in a Weekend

#64
This looks great. I've seen a few things in rest of comments but if anyone could share anything similar about networking or computer science topics in general I'd really appreciate it. It's weird looking back I learned so much stuff as a kid in the 90s that I wish I knew better now, from trying to be a wannabe hacker and always breaking stuff I had to figure out how to fix if I wanted to use it again. I never went to college for Comp Science or worked in IT or coding but now I want to make a career change. Even though I always had some personal projects or occasional freelance type web dev, I guess the more complicated stuff was abstracted away over the years and it was easier to do more with knowing less.

Re: Implement DNS in a Weekend

#66
post #64

This looks great. I've seen a few things in rest of comments but if anyone could share anything similar about networking or computer science topics in general I'd really appreciate it. It's weird looking back I learned so much stuff as a kid in the 90s that I wish I knew better now, from trying to be a wannabe hacker and always breaking stuff I had to figure out how to fix if I wanted to use it again. I never went to…

Same here. 1998 was the first time I touched a pc. Next 3 to 4 years were c & c++. Then WYSIWYG html editors. Then php. Then javascript & html n static stuff. No formal education related to computers. Although I am comfortable with my current job, but somewhere in the back of my mind I wish I was in IT, earning IT money.

Re: Implement DNS in a Weekend

#67
post #26
post #3

Julia's zines[0] are great. Got mine this week and it's a delight to read. 0 - https://wizardzines.com

The cute hand-drawn aesthetic reminded me of fun times reading Forrest Mims' electronics books.

Some of them definitely remind me of a late 70s/early 80s style.

Re: Implement DNS in a Weekend

#68
post #42

This is fabulous. It would be convenient if I didn't have to download the code to run it though - if it was in a GitHub repo it could provide links to hosted notebook services such as JupyterHub and Colab - then lazy people like myself could click those links to try out the notebooks in their browsers without downloading, unzipping and running Jupyter locally.

https://github.com/alanhamlett/dns-weekend

Re: Implement DNS in a Weekend

#69
post #61
post #58

Earlier quoted context omitted.

If you upgrade to ZeroTier you can get it running on OpenWRT and MikroTik routers https://help.mikrotik.com/docs/display/ROS/ZeroTier

Good luck installing OpenWRT on the silly router provided by my ISP.

You can always install one daisy-chained.

Re: Implement DNS in a Weekend

#70
post #12

I love all the series about writing your own X in 100 lines of code. It gives you the understanding of technology and removes a lot of unnecessary details. The great examples of this are 'A from-scratch tour of Bitcoin in Python' https://karpathy.github.io/2021/06/21/blockchain/ and 'Let's build GPT: from scratch, in code, spelled out' https://youtu.be/kCc8FmEb1nY from Andrej Karpathy I wonder if anybody tried to col…

Plug: I am a big fan of Build Your Own X educational projects. I have a build your own KV Store project. I have set up this project in TDD fashion with the tests. So, you start with simple functions, pass the tests, and the difficulty level goes up. There are hints if you get stuck (e.g. link). When all the tests pass, you will have written a persistent key-value store.

go - https://github.com/avinassh/go-caskdb

python - https://github.com/avinassh/py-caskdb

Post reply on HN