2 ms·
It’s probably because the projects you have in mind are too big and so you don’t know where to start. Don’t try to make a “DNS server” right off the bat. Make
by codetrotter 3y ago
It’s probably because the projects you have in mind are too big and so you don’t know where to start.
Don’t try to make a “DNS server” right off the bat. Make a program that is hardcoded to respond to a query for the A records for a single, hardcoded domain. Do this first before you give any further thought to “DNS server” functionality. Use the “dig” or “drill” command line utilities to make the query, and use Wireshark to inspect the the resulting request and response from an existing DNS server such as 1.1.1.1 or 8.8.8.8. Then make it so that your program can respond similarly to requests from dig or drill, for some single domain of your choosing. Test it a few times to make sure it works. And only after that should you continue with thinking about what to do next for the DNS server.