Live data from Hacker News

How to hand-write DNS messages

routley.io

11–12 of 12 posts

Re: How to hand-write DNS messages

#11

Writing a simple DNS resolver is a common assignment in networking courses, and I do recommend it --- keeping in mind that the protocol was designed to work on machines with a fraction of the memory and CPU power as those today, helps understanding some of the otherwise odd design decisions; for example, requests and replies have the same format and header to allow the same buffer to be reused for both receiving the…

I was going to post complaining about that very point. Any discussion of URL is irrelevant and misleading in the context of raw DNS queries for beginners. I think the author incorrectly assumes domain name is interchangeable with URL for some reason.

Re: How to hand-write DNS messages

#12
post #7
post #5

Earlier quoted context omitted.

I don't think you can give a recursive query to a root server.

Sorry, what I meant with "recursive" was doing the recursion myself, instead of handing it off to a server like Google's DNS server. If I follow the replies starting from root server one by one, am I likely to hit some limit?

[deleted]
Post reply on HN