Implement DNS in a Weekend
implement-dns.wizardzines.com
Implement DNS in a Weekend
1–10 of 77 posts
Re: Implement DNS in a Weekend
#2This is great. Incidentally, writing toy recursive resolvers is one of the primary methods I use to help me learn new languages. If you take the time to develop an understanding of the domain, I've found its an easily repeatable exercise and can be done in a couple of hours.
Re: Implement DNS in a Weekend
#3Julia's zines[0] are great. Got mine this week and it's a delight to read.
Re: Implement DNS in a Weekend
#4I'll dig up my old comment about how easy DNS is to work with using DNS4J:
Message query = new Message(data);
Header header = query.getHeader();
Record question = query.getQuestion();
Message response = new Message(query.getHeader().getID());
response.getHeader().setFlag(Flags.QR);
response.addRecord(question, Section.QUESTION);
Name name = question.getName();
int type = question.getType();
int dclass = question.getDClass();
String host = name.toString(true).toLowerCase();
...
response.addRecord(new ARecord(name, dclass, 300, "someIP"), Section.ANSWER);
...
response.getHeader().setFlag(Flags.AA);
return response.toWire(512);Re: Implement DNS in a Weekend
#5[dead]
Re: Implement DNS in a Weekend
#6Julia's zines[0] are great. Got mine this week and it's a delight to read. 0 - https://wizardzines.com
agreed, have several printed ones and love the combination of whimsy and concise technical content.
Re: Implement DNS in a Weekend
#7Enjoyed. I’ve been experimenting with parsing network protocols a lot lately with an eye to separating the parsing from the “logic” (usually combined in one handler). DNS (and DHCP) are the two I started with - having the flexibility to easily extend/alter the logic is useful from time to time (ala PiHole).
Re: Implement DNS in a Weekend
#8Yes. We need more of those little tutorials demystifying things we take for granted.
Re: Implement DNS in a Weekend
#9Julia's zines[0] are great. Got mine this week and it's a delight to read. 0 - https://wizardzines.com
On Firefox mobile, I get some element overflow blocking the speech bubble. Maybe a flex wrap gone wrong?
Just a heads up incase Julia is reading :)
Re: Implement DNS in a Weekend
#10Julia's posts are always so informative; DNS being one of those topics which I presume so many developers are like myself and have "just enough knowledge to be dangerous" :-)