Make your Own DNS Server in Python - Part 7 - Counting Qs & As
Posted on in Web Development
In this video we’ll be setting the question count in the response, this will always be 1, even though the DNS protocol allows for multiple questions in a single query. That’s because, in practice, every DNS query has only one question.
We’ll also we working out the answer count. This is more complicated because the answer count is calculated by reading the zone file for the domain in question and counting the number of records of the correct type in the zone file.
Go to https://howcode.org for more!
Link to howCode Facebook: http://howco.de/fb
Link to howCode Twitter: http://howco.de/twitter
Link to /r/howCode: http://howco.de/reddit
Don’t forget to subscribe for more!